Re: [R] Question about levels/as.numeric

2011-04-11 Thread John Kane
--- On Sun, 4/10/11, Rolf Turner wrote: > From: Rolf Turner > Subject: Re: [R] Question about levels/as.numeric > To: r-help@r-project.org > Received: Sunday, April 10, 2011, 9:48 PM > On 11/04/11 10:08, Peter Ehlers > wrote: > > > > "Checking&quo

Re: [R] Question about levels/as.numeric

2011-04-10 Thread Thibault Vatter
Thanks Kent and Petr, the problem was indeed the "C"/missing value that I had to convert! Thanks Peter too, the "factor" explanation will also be quite usefull for further work. Best regards, Thibault On 11 April 2011 03:48, Rolf Turner wrote: > On 11/04/11 10:08, Peter Ehlers wrote: > > > >

Re: [R] Question about levels/as.numeric

2011-04-10 Thread Petr Savicky
On Sun, Apr 10, 2011 at 05:47:59PM +0200, Thibault Vatter wrote: > Hi, > > I am still new to R and this is my first post on this mailing-list. > > I have two .csv (each one being a column of real numbers) coming from the > same database (the first one is just longer than the second) and I read th

Re: [R] Question about levels/as.numeric

2011-04-10 Thread Rolf Turner
On 11/04/11 10:08, Peter Ehlers wrote: "Checking" anything with Excel is never much use. Fortune? cheers, Rolf Turner __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Question about levels/as.numeric

2011-04-10 Thread Peter Ehlers
Thibault, Your questions indicate that you would benefit enormously from reading 'An Introduction to R'. A very useful function is str(). Understanding the concept of "factors" is crucial in R. "Checking" anything with Excel is never much use. Peter Ehlers On 2011-04-10 08:47, Thibault Vatter

Re: [R] Question about levels/as.numeric

2011-04-10 Thread Petr Savicky
On Sun, Apr 10, 2011 at 05:47:59PM +0200, Thibault Vatter wrote: > Hi, > > I am still new to R and this is my first post on this mailing-list. > > I have two .csv (each one being a column of real numbers) coming from the > same database (the first one is just longer than the second) and I read th

[R] Question about levels/as.numeric

2011-04-10 Thread Thibault Vatter
Hi, I am still new to R and this is my first post on this mailing-list. I have two .csv (each one being a column of real numbers) coming from the same database (the first one is just longer than the second) and I read them in R the following way: returns <- read.csv("test.csv", header = FALSE)