[R] How to rbind() two matrices that have different column sizes?

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Wed Mar 26 16:19:37 CET 2014


This problem is poorly defined, since the meanings of row vectors of different lengths do not naturally agree. Perhaps you are thinking of binding data frames?

In any event, if you think the behaviour provided by the plyr package is what you want, why DON'T you want to use it? Further, if plyr fits the bill then the answer to your question is obviously "however plyr does it" (Read The Source, Luke).
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

On March 26, 2014 7:06:34 AM PDT, Babak Bastan <babakbsn at gmail.com> wrote:
>Hi friends
>
>I would like to rbind two matrices with different column number. How
>can I
>do that? (I dont want to use Plyr package). Is there any way except
>plyr?
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list