On Nov 9, 2011, at 10:14 AM, Johannes Radinger wrote:
Hello,
I very general question but probably usefull to others as well:
Is there any prebuild function that reorders a dataframe from:
x1x2
1 100 200
2 101 201
3 102 202
4 103 203
5 104 204
6 105 205
to
1 100 x1
df = data.frame(x1 = 100:105, x2 = 200:205)
library(reshape2)
melt(df)
Michael
On Wed, Nov 9, 2011 at 10:14 AM, Johannes Radinger wrote:
> Hello,
>
> I very general question but probably usefull to others as well:
>
> Is there any prebuild function that reorders a dataframe from:
>
> x1 x2
2 matches
Mail list logo