Skip to content
Prev 258663 / 398502 Next

Help converting a data.frame to ordered factors

Robert -
    It would be helpful to know what you've tried that didn't
work, but the data.frame() function is the usual way of combining
things like this:
a         b 
[1,] "ordered" "ordered"
[2,] "factor"  "factor"

In particular cbind() and matrix() will not work properly for
what you're trying to do.

Of course, if you explained exactly how you're creating the 
96x34 array, there might be a better solution.

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu
On Mon, 2 May 2011, Robert Cassidy wrote: