[R] changing display of a dataframe
Douglas Federman
dfederman at mco.edu
Fri Apr 16 19:32:16 CEST 2004
I have the following dataframe "s"
name jul aug sep
1 Joe m1 m2 m3
2 Bill m2 m3 m2
3 Sue m3 m1 m1
I am interested in transforming the data into the following:
jul aug sep
m1 Joe Sue Sue
m2 Bill Joe Bill
m3 Sue Bill Joe
Is there a simple way to do this?
--
"It has often been remarked that an educated man has probably forgotten most of the facts he acquired in school and university. Education is what survives when what has been learned has been forgotten." -- B.F. Skinner, New Scientist, 31 May 1964, p. 484
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Douglas Federman.vcf
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20040416/d892a645/DouglasFederman.pl
More information about the R-help
mailing list