Re: [R] 'Unexpected numeric constant'

2012-03-19 Thread Peter Ehlers
On 2012-03-19 09:39, HJ YAN wrote: Dear R-help, I am trying to rename the variables in a dataframe, called 'T1A' here. Seems renaming was successful, but when I call one of the variable I got error message and I wanted to know why. The data frame contains 365 rows and 49 columns. I would like

Re: [R] 'Unexpected numeric constant'

2012-03-19 Thread Berend Hasselman
On 19-03-2012, at 17:39, HJ YAN wrote: > Dear R-help, > > I am trying to rename the variables in a dataframe, called 'T1A' here. > Seems renaming was successful, but when I call one of the variable I got > error message and I wanted to know why. > > > The data frame contains 365 rows and 49 co

[R] 'Unexpected numeric constant'

2012-03-19 Thread HJ YAN
Dear R-help, I am trying to rename the variables in a dataframe, called 'T1A' here. Seems renaming was successful, but when I call one of the variable I got error message and I wanted to know why. The data frame contains 365 rows and 49 columns. I would like to name the first column `DATE` and t

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 bu

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 > &

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: http://r.78

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 bu

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

[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 chang