Difference between revisions of "R organizing data"

From REALab Wiki
Jump to navigation Jump to search
Line 5: Line 5:
====how to make a new script and run commands from it?====
====how to make a new script and run commands from it?====


When you run commands from the R console, the code completely disappears after closing R.  So for any lengthy set of commands, you will want to save your source code in a script.  For the following sections, I'd recommend creating a new script for each data set.
When you run commands from the R console, the code completely disappears after closing R.  So for any lengthy set of commands, you will want to save your source code in a script.  For the following sections, I'd recommend creating a new script for each data set (as well as distinct folders).  
 
To create a script for the attentional blink


To create a script for the ''attentional blink'' data set, open R and go to ''file > new script''


====saving workspace images?====
====saving workspace images?====


In addition to saving your commands, you can also save the values of variables
In addition to saving your commands, you can also save the values of variables

Revision as of 22:15, 27 February 2013

Back to R Analysis

Go to Part 1: R basics

Go to Part 3: Analyzing your data

how to make a new script and run commands from it?

When you run commands from the R console, the code completely disappears after closing R. So for any lengthy set of commands, you will want to save your source code in a script. For the following sections, I'd recommend creating a new script for each data set (as well as distinct folders).

To create a script for the attentional blink data set, open R and go to file > new script

saving workspace images?

In addition to saving your commands, you can also save the values of variables