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
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
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
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:
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
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
6 matches
Mail list logo