[R] Making a data frame into a factor ?

2008-04-15 Thread Paul Lynch
Hi, I'm trying to do a linear regression style one-way ANOVA using some data in a data frame, and (perhaps because I am still relatively unfamiliar with both R and statistics) what I thought I should do was to make the data frame into a factor. By that I mean that I have a data frame whose

Re: [R] Making a data frame into a factor ?

2008-04-15 Thread Charilaos Skiadas
I think you want to look into ?stack. For example: x-data.frame(a=1:5,b=6:10) y- stack(x) Then x$values are the values, and x$ind is the factor. On Apr 15, 2008, at 9:36 PM, Paul Lynch wrote: Hi, I'm trying to do a linear regression style one-way ANOVA using some data in a data frame,