[R] stack on factors

Douglas Bates bates at stat.wisc.edu
Fri Dec 20 16:44:03 CET 2002


Alexander.Herr at csiro.au writes:

> It seems that stack() does not include factors. Any easy way of "stacking"
> factors in a dataframe without recoding to numbers?

You may want to try reshape(..., direction = 'long') instead of stack.




More information about the R-help mailing list