[R] Where the data file is stored?

Stephen Liu satimis at yahoo.com
Thu Aug 12 11:17:18 CEST 2010


----- Original Message ----

From: Michael Bedward <michael.bedward at gmail.com>
To: Stephen Liu <satimis at yahoo.com>
Cc: r-help at r-project.org
Sent: Thu, August 12, 2010 3:50:12 PM
Subject: Re: [R] Where the data file is stored?

> By default everything in an R workspace (data objects, functions etc)
> will be stored in a file called .RData in the working directory.

> Please see http://cran.r-project.org/doc/contrib/Paradis-rdebuts_en.pdf


Hi Michael,

Ah I see.  Thanks

$ locate RData
/home/userA/.RData
/usr/lib/R/site-library/qtl/data/badorder.RData
/usr/lib/R/site-library/qtl/data/bristle3.RData
/usr/lib/R/site-library/qtl/data/bristleX.RData
/usr/lib/R/site-library/qtl/data/fake.4way.RData
/usr/lib/R/site-library/qtl/data/fake.bc.RData
/usr/lib/R/site-library/qtl/data/fake.f2.RData
/usr/lib/R/site-library/qtl/data/hyper.RData
/usr/lib/R/site-library/qtl/data/listeria.RData
/usr/lib/R/site-library/qtl/data/map10.RData


I left out following step;

> write.csv(data, "petdrug.csv")
> q()
without saving. 


$ locate petdrug.csv
/home/userA/petdrug.csv


petdrug.csv can be read on OpenOffice Calc and edited there.


B.R.
Stephen L





More information about the R-help mailing list