Re: [R] Dataframe with single level column

2008-11-21 Thread Stefan Große
> I need to run anova analyis on the group in levels against the merge data > in the first two columns. I can manually split and join the different > columns as in > > > d.t <- > rbind(data.frame(value=d[,1],ind=d[,3]),data.frame(value=d[,2],ind=d[,3])) > > but I was wondering if there would be a

[R] Dataframe with single level column

2008-11-21 Thread Blanchette, Marco
Dear all, I have a dataframe with multiple observations and the levels as the last column, as in: d <- data.frame(A=sample(1:100,12),B=sample(1:100,12),levels=c(rep('A',4),rep('B',4),rep('C',4))) > d A B levels 1 77 40 A 2 14 18 A 3 56 7 A 4 46 27 A 5 63 35 B