cbind_fill: Safely Combine R Objects of Variying Lengths by Columns

Description Usage Arguments Value Author(s) References Examples

View source: R/manipulate.R

Description

Take a sequence of vector, matrix or data-frame arguments and combine by columns or rows, respectively.

Usage

1

Arguments

...

Vectors or matrices.

Value

A matrix with NAs wherever needed.

Author(s)

D. Rizopoulos

References

http://r.789695.n4.nabble.com/How-to-join-matrices-of-different-row-length-from-a-list-td3177212.html # nolint

Examples

1
2
3
4
A <- matrix(1:4, 2, 2)
B <- matrix(1:6, 3, 2)
C <- matrix(2:1, 1, 2)
cbind_fill(A, B, C)

wikimedia/wikimedia-discovery-polloi documentation built on Dec. 4, 2019, 2:12 p.m.