> You're not seeing the .Rdata file containing the data objects. Try: > list.files(getwd(),full.name=TRUE, all.files=TRUE)
Hi Keith, Thanks for your advice On R console running > list.files(getwd(),full.name=TRUE,all.files=TRUE) The output is similar to running following command on Ubuntu terminal; > ls -al /home/userA/ Except the latter showing which are files and which are directories B.R. satimis ----- Original Message ---- From: Keith Jewell <k.jew...@campden.co.uk> To: r-h...@stat.math.ethz.ch Sent: Thu, August 12, 2010 8:47:03 PM Subject: Re: [R] Where the data file is stored? You're not seeing the .Rdata file containing the data objects. Try: list.files(getwd(),full.name=TRUE, all.files=TRUE) "Stephen Liu" <sati...@yahoo.com> wrote in message news:961426.85478...@web113203.mail.gq1.yahoo.com... ----- Original Message ---- From: Alain Guillet <alain.guil...@uclouvain.be> To: Stephen Liu <sati...@yahoo.com> Cc: r-help@r-project.org Sent: Thu, August 12, 2010 5:28:32 PM Subject: Re: [R] Where the data file is stored? > You can find your current working directory with the getwd() function. Hi Alain, Thanks for your advice. > getwd() [1] "/home/userA" > list.files(getwd()) [1] "Desktop" "Documents" "Downloads" [4] "examples.desktop" "last-packages.txt" "Music" [7] "myR" "petdrug.csv" "Pictures" [10] "Public" "R" "Templates" [13] "Videos" > list.files(getwd(),full.name=TRUE) [1] "/home/userA/Desktop" [2] "/home/userA/Documents" [3] "/home/userA/Downloads" [4] "/home/userA/examples.desktop" [5] "/home/userA/last-packages.txt" [6] "/home/userA/Music" [7] "/home/userA/myR" [8] "/home/userA/petdrug.csv" [9] "/home/userA/Pictures" [10] "/home/userA/Public" [11] "/home/userA/R" [12] "/home/userA/Templates" [13] "/home/userA/Videos" How to show on the printout which is directory? TIA B.R. Stephen L On 12-Aug-10 11:22, Stephen Liu wrote: > ----- Original Message ---- > > From: Philipp Pagel<p.pa...@wzw.tum.de> > To: r-help@r-project.org > Sent: Thu, August 12, 2010 3:54:53 PM > Subject: Re: [R] Where the data file is stored? > >> You dont't tell us what you did to "create a datafile" - to me it >> sounds like you created an object (probably a data frame) in your R >> workspace. If that's the case it is stored in a file called .RData in >> your current work directory (together with other variables in your >> workspace). If that is not what you did please give us mre >> information. > > Hi Philipp, > > Yes, it is "data frame". > > I have run the step > write.csv ....... > > Other advice noted. Thanks > > > B.R. > Stephen L > > > > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Alain Guillet Statistician and Computer Scientist SMCS - IMMAQ - Université catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.