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 <aeloj...@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 ______________________________________________ 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.