cbind.fill: resetPar

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/aveytoolkit_cbindFill.R

Description

Simple function to combine multiple objects by column while filling in NAs into extra rows created from differing lengths

Usage

1
2
## S3 method for class 'fill'
cbind(...)

Arguments

...

the objects, that will be converted to a list, to bind column-wise

Value

the cbind'ed objects passed in

Author(s)

Dimitris Rizopoulos and Tyler Rinker

References

http://stackoverflow.com/questions/7962267/cbind-a-df-with-an-empty-df-cbind-fill

See Also

cbind

Examples

1
2
3
4
5
6
7
x <- matrix(1:10, 5, 2)
y <- matrix(1:16, 4, 4)
z <- matrix(1:12, 2, 6)

cbind.fill(x,y)
cbind.fill(x,y,z)
cbind.fill(mtcars, mtcars[1:10,])

stefanavey/aveytoolkit documentation built on March 5, 2020, 12:49 a.m.