Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


DataVisualizations (version 1.3.3)

CombineCols: Combine vectors of various lengths

Description

Combine arbitrary vectors of data, filling in missing rows with NaN

Usage

CombineCols(...,na.rm=FALSE)

Value

matrix of dimensionality of n x d with n beeing the length of the longest vector and d the number of vectors given as input

Arguments

...

d vectors of arbitrary lengths, see example

na.rm

boolean: FALSE: fills with NaN TRUE: filles with zeros

Author

Craig Varrichio

Details

Robust alternative to cbind that fills missing values with nan instead of extending length of vector by duplicating elements

See Also

CombineRows

Examples

Run this code
CombineCols(c(1,2,3),c(1),c(2,3))

Run the code above in your browser using DataLab