[R] Managing Data

Jonathan Baron baron at cattell.psych.upenn.edu
Fri Feb 8 19:26:16 CET 2002


It is hard to know what kind of projects you have, but one
approach, among many, is outlined in the beginning of
http://www.psych.upenn.edu/~baron/rpsych.htm
It involves keeping raw data in separate files, each with
a name (supposedly a useful mnemonic), such as cba1.data,
and scripts in other separate files, such as cba1.R.  The
script cba1.R has something like
read.table("cba1.data")
as its first line, and it contains all the useful transformations
and analyses (some commented out) discovered so far.  I do not
use the files that R stores at all.  Rather, I edit the ..R file
with ESS (which allows me to go back and forth to R itself).

As I say, this is one approach among many.  I think R has many
tools that can help develop alternative approaches, such as
setwd() for changing directories.

For editing data I use (X)emacs, but you could also use a
spreadsheet, or something fancier, or R itself, with the
write() command for saving what you've edited.

Jon Baron
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list