[prev in list] [next in list] [prev in thread] [next in thread]
List: r-help
Subject: Re: [R] Import help (neophyte)
From: Duncan Murdoch <murdoch () stats ! uwo ! ca>
Date: 2005-10-31 18:51:10
Message-ID: 4366679E.1040205 () stats ! uwo ! ca
[Download RAW message or body]
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
______________________________________________
R-help@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic