[R] Where the data file is stored?

2010-08-12 Thread Stephen Liu
Hi folks, OS - Ubuntu 10.04 On R I create a datafile named data. I can evoke it on R with; data On R Commander Data - Active data set - Select active data set - (data) OK only one data set there data - View data set I can read it - Edit data set showing 25 rows of data. Clicking the box

Re: [R] Where the data file is stored?

2010-08-12 Thread Michael Bedward
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 Michael __ R-help@r-project.org mailing list

Re: [R] Where the data file is stored?

2010-08-12 Thread Philipp Pagel
On R I create a datafile named data. I can evoke it on R with; data On R Commander Data - Active data set - Select active data set - (data) OK only one data set there data - View data set I can read it - Edit data set showing 25 rows of data. Clicking the box shows a thick

Re: [R] Where the data file is stored?

2010-08-12 Thread Stephen Liu
- Original Message From: Michael Bedward michael.bedw...@gmail.com To: Stephen Liu sati...@yahoo.com Cc: r-help@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

Re: [R] Where the data file is stored?

2010-08-12 Thread Stephen Liu
- 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

Re: [R] Where the data file is stored?

2010-08-12 Thread Alain Guillet
Hi, You can find your current working directory with the getwd() function. Alain On 12-Aug-10 11:22, Stephen Liu wrote: - Original Message From: Philipp Pagelp.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

Re: [R] Where the data file is stored?

2010-08-12 Thread Stephen Liu
- 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

Re: [R] Where the data file is stored?

2010-08-12 Thread Barry Rowlingson
On Thu, Aug 12, 2010 at 12:37 PM, Stephen Liu sati...@yahoo.com wrote: - 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

Re: [R] Where the data file is stored?

2010-08-12 Thread Keith Jewell
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

Re: [R] Where the data file is stored?

2010-08-12 Thread Stephen Liu
...@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

Re: [R] Where the data file is stored?

2010-08-12 Thread Stephen Liu
From: Barry Rowlingson b.rowling...@lancaster.ac.uk To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Thu, August 12, 2010 8:05:10 PM Subject: Re: [R] Where the data file is stored? On Thu, Aug 12, 2010 at 12:37 PM, Stephen Liu sati...@yahoo.com wrote: - Original Message

Re: [R] Where the data file is stored?

2010-08-12 Thread David Winsemius
is ! for? TIA ?! (learn to use R help facilities!) B.R. Stephen L - Original Message From: Barry Rowlingson b.rowling...@lancaster.ac.uk To: Stephen Liu sati...@yahoo.com Cc: r-help@r-project.org Sent: Thu, August 12, 2010 8:05:10 PM Subject: Re: [R] Where the data file is stored

Re: [R] Where the data file is stored?

2010-08-12 Thread Barry Rowlingson
On Thu, Aug 12, 2010 at 4:51 PM, Stephen Liu sati...@yahoo.com wrote: Hi Barry, Following 2 commands are useful to me; row.names(subset(file.info(list.files(getwd(),full.name=TRUE)),isdir)) showing directories. row.names(subset(file.info(list.files(getwd(),full.name=TRUE)),!isdir))