[R] Making multiple columns to a single column
jwiley.psych at gmail.com
Sun Mar 14 00:39:13 CET 2010
Rbind puts each object in a row, just use c(d1, d2, ... d72) to
combine them all together. If you want it in a matrix
On Sat, Mar 13, 2010 at 3:30 PM, Hyo Lee <totemo13 at gmail.com> wrote:
> Hi guys,
> I have a very simple question.
> I'm trying to make multiple columns to a single column.
> For example,
> *ttx1* is a 46*72 matrix.
> so, I tried this.
> now, d1, d2, ...,d72 become a 46*1 matrix.
> And then.. I tried..
> *dd=rbind(d1, d2, ..., d72)*
> I thought *dd* should be 3312*1 matrix; but it becomes 72*46.
> I really wanted to make it a single column (3312*1).
> Do you know what is wrong in this code? Or, do you have a better idea in
> making multiple columns to a single column?
> Thank you so much.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Senior in Psychology
University of California, Riverside
More information about the R-help