[R] "unexpected numeric constant" while reading tab delimited csv file

madr madrazel at interia.pl
Mon Nov 22 09:29:03 CET 2010


my csv file is very simple - just one line for purpose of this test:
0{TAB}0

and read function is this:
csvdata = read.csv(file="d:/s/test.csv",head=FALSE,sep="\t")

then error comes:

Error in source("d:/test.csv") : 
  d:/test.csv:1:9: unexpected numeric constant
1: 0       0


but when I change delimiter to ; (colon) then error not shows up anymore
-- 
View this message in context: http://r.789695.n4.nabble.com/unexpected-numeric-constant-while-reading-tab-delimited-csv-file-tp3053252p3053252.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list