CombineCols {DataVisualizations}R Documentation

Combine vectors of various lengths

Description

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

Usage

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

Arguments

...

d vectors of arbitrary lengths, see example

na.rm

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

Details

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

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

Note

special application by MCT of rowr cbind.fill which is now not on CRAN anymore

Author(s)

Craig Varrichio

See Also

CombineRows

Examples

CombineCols(c(1,2,3),c(1),c(2,3))

[Package DataVisualizations version 1.3.3 Index]