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

2010-11-22 Thread madr
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

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

2010-11-22 Thread madr
the problem shows up only in console when script is loaded thru source() and separator character is eighter tab or space, strangely, when I'm running script directly form file in text environment everything is ok. [I'm reposing this because my previous post didn't get on the list because double

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

2010-11-22 Thread Jeff Newmiller
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

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

2010-11-22 Thread madr
The folder are the same, I just deleted the long path because it is irrelevant and by mistake left /s i one of the paths, they should be identical. I'm running this package: http://cran.r-project.org/bin/windows/base/R-2.12.0-win.exe on win xp 32 bit -- View this message in context:

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

2010-11-22 Thread Mike Marchywka
Date: Mon, 22 Nov 2010 01:57:54 -0800 From: jdnew...@dcn.davis.ca.us To: madra...@interia.pl CC: r-help@r-project.org Subject: Re: [R] unexpected numeric constant while reading tab delimited csv file madr wrote: my csv file is very simple

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

2010-11-22 Thread Duncan Murdoch
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