[R] error message

Sarah Goslee sarah.goslee at gmail.com
Tue Mar 20 17:00:11 CET 2012


You left a quotation mark out of your very first statement, and then
some others. Quotation marks must be balanced.

Try this instead:


setwd("C:\\TEMP")
dat <- read.table("cheshire_fmd.cvs",header=TRUE, sep=",")
dat[1:10,]

Sarah

On Tue, Mar 20, 2012 at 10:36 AM, adamu eloji <aeloji60 at yahoo.com> wrote:
> Dear all,
>
>  Who will bail me out. Iam using R with S-Splancs. Anytime i typed in the syntex, an error will appear eg setwd("C:\\TEMP)
>>dat <- read.table(cheshire_fmd.cvs",header=TRUE, sep=",")
>> dat.<-read.table(''chesire_fmd.cvs'',header=TRUE,sep='',)
> Error: unexpected symbol in "dat.<-read.table(''chesire_fmd.cvs"
>> dat$x.km <-dat$xcoord/1000
> Error: object 'dat' not found
>> dat$y.km <-dat$ycoord/1000
> Error: object 'dat' not found
>> dat[1:10,]
> Error: object 'dat' not found
>> Library(splancs)
> I was advised to remove the '>' at begining of each line, but its like that symbol is a default. How do i do that.
> Thanks
> El-Oji Adamu
> Nigeria
>

-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list