Re: [R] reshaping data

From: ¨Tariq Khan <tariq.khan_at_gmail.com>
Date: Tue 14 Feb 2006 - 05:01:22 EST

You might just want to try this, it is quite efficient:

as.numeric(t(as.matrix(x)))

On 2/13/06, Roger Mason <rmason@esd.mun.ca> wrote:
> Hello,
>
> I have data in a frame:
>
> 1 2 3 4 5 6 7 8
> 9 10 11 12 13 14 15 16
>
> I would like them arranged in a single column:
>
> 1
> 2
> 3
> 4
> .
> .
> 8
> 9
> .
> .
> 16
>
> etc.
>
> I believe this should be possible using reshape, but I can't see how
> to do it.
>
> Thanks for sparing time to help a neophyte,
>
> Roger Mason
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Feb 14 05:06:00 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:29 EST