Combine arbitrary matrices of data, filling in missing columns with NaN
Usage
CombineRows(...,na.rm=FALSE)
Value
matrix of dimensionality of n x d with n beeing the number of rows of the first argument and d the number columns of the first argument given as input
Arguments
...
First argument is a matrix usually with named columns, thereafter either matrices or d vectors of arbitrary lengths, see example
na.rm
boolean: FALSE: fills with NaN
TRUE: filles with zeros
Author
Michael Thrun
Details
Robust alternative to rbind that fills missing values with #NaN, tries to match given column names
if matrices are inserted otherwise fills up the missing columns at the end.
The first argument has to be a matrix. It is assumed that this matrix has to be filled up and other arguments or not of bigger size than d columns. Otherwiese the further elements stored in columns >d are ignored.