[R] reshaping a data frame

Erin Hodgess erinm.hodgess at gmail.com
Mon Oct 26 21:09:32 CET 2009

Dear R People:

Suppose I have a data.frame, x.df, which has one column and 100 rows.

Sometimes I need to see it as 20 rows and 5 columns, sometimes I need
to see it as 10 rows with 10 columns.

Is there a quick way to make those transformations, please?

Thanks in advance,
PS Happy Labour Day in New Zealand!

Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com

More information about the R-help mailing list