Learn R Programming

DataVisualizations (version 1.1.12)

CombineCols: 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

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

Details

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

Examples

Run this code
# NOT RUN {
CombineCols(c(1,2,3),c(1),c(2,3))
# }

Run the code above in your browser using DataLab