Re: [R] Factor function for coded numerical values

2012-11-29 Thread PIKAL Petr
Hi > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of maths123 > Sent: Monday, November 26, 2012 8:25 PM > To: r-help@r-project.org > Subject: Re: [R] Factor function for coded numerical values > > The

Re: [R] Factor function for coded numerical values

2012-11-26 Thread maths123
The question says that there is an experiement to investigate the effect on breathing rate when doing different types of exercise with wearing more clothes or less clothes (factor A, coded 1,2). The duration of exercise was 10min, 20min, 30min (factor B, coded 1,2,3). Could you give m anymore hel

Re: [R] Factor function for coded numerical values

2012-11-23 Thread Milan Bouchet-Valat
Le jeudi 22 novembre 2012 à 13:12 -0800, maths123 a écrit : > I have s data set where 2 of the columns give the coded versions of the > factors A and B. Factor A is coded with 1, 2, 3. Factor B is coded with 1,2. > > How do use the factor function to convert these variables into factors, and > a

[R] Factor function for coded numerical values

2012-11-22 Thread maths123
I have s data set where 2 of the columns give the coded versions of the factors A and B. Factor A is coded with 1, 2, 3. Factor B is coded with 1,2. How do use the factor function to convert these variables into factors, and also use the labels= command to give them a more informative name?