Hi:
As previously mentioned, the reshape package (in particular, melt())
is an alternative to make.groups(), although they serve the same
purpose in this example:
dat <- data.frame(`x1`=runif(6, 0, 125),
`x2`=runif(6, 50, 75),
`x3`=runif(6, 0, 100),
2011 6:58 PM
> To: r-help@r-project.org
> Subject: [R] Alternative and more efficient data manipulation
>
> Hello list,
>
> ## I have been doing the following process to convert data from one
> form to another for a while but it occurs to me that there is probably
> an eas
Hello list,
## I have been doing the following process to convert data from one
form to another for a while but it occurs to me that there is probably
an easier way to do this. I am often given data that have column names
which are actually data and I much prefer dealing with data that are
sorted
3 matches
Mail list logo