Re: [R] Order function

2012-11-28 Thread maths123
And yes I want the variable 1 to have the identifier 1 etc. And I need to call this variable "order" so I can use it to create an anova table. -- View this message in context: http://r.789695.n4.nabble.com/Order-function-tp4651022p4651198.html Sent from the R help mailing list archive at Nabbl

Re: [R] Order function

2012-11-28 Thread maths123
I have one text file with all the data on there. So 20 rows of data. And 3 columns: numbers 1-20, size, time. I need to create a variable called 'order' as I need to use it for something in the next part. I am very confused as to how to do this. -- View this message in context: http://r

[R] Order function

2012-11-27 Thread maths123
I have a set of data with 2 columns: time, size. There are 20 sets of data. The data is looking at whether the size of a seed affects the time it takes to germinate. How do I then create a numerical variable called 'order' with values 1 to 20 in order to plot a graph or order against time? --

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

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