Re: [R] mode(x) <- "double"

2009-04-30 Thread Giovanni Petris
> > Hi, > I need your help!! > I imported a big coloumn vector from a txt file but it results as mode > :"list" I want to change it in numeric otherwise I can't do my analysis. How did you "import" the data? What function did you use? > This is what i get: > > mode (data) <- "double" > Error

Re: [R] mode(x) <- "double"

2009-04-30 Thread aledanda
SOLVED: I imported again the data like this: data <- scan ("data.txt") Thanks Phil Spector! Alessandra aledanda wrote: > > Hi, > I need your help!! > I imported a big coloumn vector from a txt file but it results as mode > :"list" I want to change it in numeric otherwise I can't do my anal

Re: [R] mode(x) <- "double"

2009-04-29 Thread Dimitri Liakhovitski
Can you give an example of your .txt file that you are reading in? On Wed, Apr 29, 2009 at 1:38 PM, aledanda wrote: > > Hi, > I need your help!! > I imported a big coloumn vector from a txt file but it results as mode > :"list" I want to change it in numeric otherwise I can't do my analysis. > Th

[R] mode(x) <- "double"

2009-04-29 Thread aledanda
Hi, I need your help!! I imported a big coloumn vector from a txt file but it results as mode :"list" I want to change it in numeric otherwise I can't do my analysis. This is what i get: mode (data) <- "double" Error in eval(expr, envir, enclos) : (list) object cannot be coerced to type 'doubl