Description Usage Arguments Details Value Author(s) See Also Examples
cbindX
column-binds objects with different number of rows.
1 |
... |
matrix and data.frame objects |
First the object with maximal number of rows is found. Other objects
that have less rows get (via rbind
) additional rows with
NA
values. Finally, all objects are column-binded (via
cbind
).
See details
Gregor Gorjanc
1 2 3 4 5 6 7 8 9 10 11 | df1 <- data.frame(a=1:3, b=c("A", "B", "C"))
df2 <- data.frame(c=as.character(1:5), a=5:1)
ma1 <- matrix(as.character(1:4), nrow=2, ncol=2)
ma2 <- matrix(1:6, nrow=3, ncol=2)
cbindX(df1, df2)
cbindX(ma1, ma2)
cbindX(df1, ma1)
cbindX(df1, df2, ma1, ma2)
cbindX(ma1, ma2, df1, df2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.