Re: [R] Problem with col

2015-04-20 Thread Sonia Amin
Thank you very much John I understand the problem. 2015-04-20 19:38 GMT+02:00 John Kane : > > > > > -Original Message- > > From: soniaam...@gmail.com > > Sent: Mon, 20 Apr 2015 18:56:19 +0200 > > To: sarah.gos...@gmail.com > > Subject:

Re: [R] Problem with col

2015-04-20 Thread Sonia Amin
Thank you very much Sarah 2015-04-20 19:05 GMT+02:00 Sarah Goslee : > On Mon, Apr 20, 2015 at 12:56 PM, Sonia Amin wrote: > > Sorry Sarah for my basic question: what does "a column was read as > factor" > > mean? > > A factor is one of the basic types of data in R, and in statistics > generally

Re: [R] Problem with col

2015-04-20 Thread John Kane
> -Original Message- > From: soniaam...@gmail.com > Sent: Mon, 20 Apr 2015 18:56:19 +0200 > To: sarah.gos...@gmail.com > Subject: Re: [R] Problem with col --- clip-- > > When I type data , I obtain all the numeric values and the headears I > added (Consomm

Re: [R] Problem with col

2015-04-20 Thread Sarah Goslee
On Mon, Apr 20, 2015 at 12:56 PM, Sonia Amin wrote: > Sorry Sarah for my basic question: what does "a column was read as factor" > mean? A factor is one of the basic types of data in R, and in statistics generally, eg M/F or red/white/blue - a predetermined set of categories that may or may not

Re: [R] Problem with col

2015-04-20 Thread Sonia Amin
Sorry Sarah for my basic question: what does "a column was read as factor" mean? When I type data , I obtain all the numeric values and the headears I added (Consommation,Cylindre,Puissance,Poids) Thanks 2015-04-20 18:40 GMT+02:00 Sarah Goslee : > What is the problem? One or more of your co

Re: [R] Problem with col

2015-04-20 Thread Sarah Goslee
What is the problem? One or more of your columns was read as factor, as str(data) would show you. To avoid this, you can add stringsAsFactors=FALSE to the read.table command, but if you expect your data to be entirely numeric then there's something wrong with it that you need to hunt down. Sarah