Hi, I have no experience with R and I'm finding the manuals a bit obtuse
and written as if I already understood R.
I'm trying to import a csv file from a floppy and it's not working. The
code I'm using is
read.table("F:\GEORGIA\species_richness\SR_use.csv",
sep=",", header TRUE, row.names = 1)
I'm assuming that this command is case sensitive so everything matches.
Is there something I'm missing?
Thanks,
Jeff
****************************************
Jeffrey A. Stratford, Ph.D.
Postdoctoral Associate
331 Funchess Hall
Department of Biological Sciences
Auburn University
Auburn, AL 36849
334-329-9198
FAX 334-844-9234
http://www.auburn.edu/~stratja
On Mon, 31 Oct 2005, Jeffrey Stratford wrote:> Hi, I have no experience with R and I'm finding the manuals a bit obtuse > and written as if I already understood R. > > I'm trying to import a csv file from a floppy and it's not working. The > code I'm using is > > read.table("F:\GEORGIA\species_richness\SR_use.csv", sep=",", header > TRUE, row.names = 1) > > I'm assuming that this command is case sensitive so everything matches. > Is there something I'm missing?Yes. Your file path should be specified as "F:/GEORGIA/species_richness/SR_use.csv" [or "F:\\GEORGIA\\species_richness\\SR_use.csv"] -thomas
On Mon, 31 Oct 2005, Jeffrey Stratford wrote:> Hi, I have no experience with R and I'm finding the manuals a bit obtuse > and written as if I already understood R. > > I'm trying to import a csv file from a floppy and it's not working. The > code I'm using is > > read.table("F:\GEORGIA\species_richness\SR_use.csv", sep=",", header > TRUE, row.names = 1) > > I'm assuming that this command is case sensitive so everything matches. > Is there something I'm missing?PLEASE do read the posting guide! Without the error message you are seeing, help isn't possible (we can't see your screen, if we could, you should worry!). On Windows try to replace the file name with file.choose(), which will help you navigate to the file, but maybe that isn't your problem - without seeing the error message, we're none the wiser.> > Thanks, > > Jeff > > > **************************************** > Jeffrey A. Stratford, Ph.D. > Postdoctoral Associate > 331 Funchess Hall > Department of Biological Sciences > Auburn University > Auburn, AL 36849 > 334-329-9198 > FAX 334-844-9234 > http://www.auburn.edu/~stratja > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no
On Mon, 31 Oct 2005, Jeffrey Stratford wrote:> Hi, I have no experience with R and I'm finding the manuals a bit obtuse > and written as if I already understood R. > > I'm trying to import a csv file from a floppy and it's not working. The > code I'm using is > > read.table("F:\GEORGIA\species_richness\SR_use.csv", sep=",", header > TRUE, row.names = 1)Further to my previous answer, also review R Windows FAQ 2.16, most likely your problem.> > I'm assuming that this command is case sensitive so everything matches. > Is there something I'm missing? > > Thanks, > > Jeff > > > **************************************** > Jeffrey A. Stratford, Ph.D. > Postdoctoral Associate > 331 Funchess Hall > Department of Biological Sciences > Auburn University > Auburn, AL 36849 > 334-329-9198 > FAX 334-844-9234 > http://www.auburn.edu/~stratja > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no
On 10/31/2005 1:31 PM, Jeffrey Stratford wrote:> Hi, I have no experience with R and I'm finding the manuals a bit obtuse > and written as if I already understood R. > > I'm trying to import a csv file from a floppy and it's not working. The > code I'm using is > > read.table("F:\GEORGIA\species_richness\SR_use.csv", sep=",", header > TRUE, row.names = 1) > > I'm assuming that this command is case sensitive so everything matches. > Is there something I'm missing?In R (as in C) the backslash is an escape character. To have a backslash appear in your pathname, you need to double it. Alternatively, just use a forward slash: read.table("F:/GEORGIA/species_richness/SR_use.csv", sep=",", header TRUE, row.names = 1) Duncan Murdoch