CombineCols {DataVisualizations}R Documentation

Combine vectors of various lengths

Description

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

Usage

CombineCols(...)

Arguments

...

d vectors of arbitrary lengths, see example

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

Examples

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

[Package DataVisualizations version 1.3.2 Index]