[Rd] cbind with different vector lengths

From: Geophagus <falk.hilliges_at_twain-systems.com>
Date: Fri, 12 Aug 2011 02:28:27 -0700 (PDT)


Hi @ all,
I have the following question:
Is there a possibilty to cbind tree dataframes with different numbers of rows?

Here is my example:

/> b2007
5 8
1 1

> b2008

3 6 8
3 1 2

> b2009

1 3 8
1 2 1

> cbind (b2007,b2008,b2009)

  b2007 b2008 b2009

3     1     3     1
6     1     1     2
8     1     2     1

Warnmeldung:
In cbind(b2007, b2008, b2009) :
  number of rows of result is not a multiple of vector length (arg 1)/

I also need the row name "5" and the "1" with NA or 0 as value in the result.
I hope my problem was understandable.

Thanks a lot in advance!
Falk aka Geophagus

--
View this message in context: http://r.789695.n4.nabble.com/cbind-with-different-vector-lengths-tp3738320p3738320.html
Sent from the R devel mailing list archive at Nabble.com.

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 12 Aug 2011 - 11:47:33 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 12 Aug 2011 - 12:20:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive