madr wrote:
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

You used source, not read.csv.  They aren't the same thing.

If you typed what you said you typed, then you've hidden the real read.csv function behind your own, and your own calls source. But I don't think you typed what you said you typed.

Duncan Murdoch

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

Reply via email to