rbindSafe: rbindSafe: Row-wise Concatenation of Objects With Potentially...

Description Usage Arguments Details Value Author(s)

View source: R/rbindSafe.R

Description

rbindSafe() concatenates rows of arguments after ensuring same columns are present

Usage

1

Arguments

...

Two or more objects such as matrices, data.frames, arrays or vectors to concatenate along the first dimension (adding rows).

Details

rbindSafe finds the union of (column) names of the objects. It puts the columns in common in the same order and applies rbind, then adds the columns unique to one object or the other, with missing values for the object where the column is missing.

Value

Returns an object of the same class as the inputs (coerced to the same class if they differ) with additional rows, and the union of the columns.

Author(s)

M.W.Rowe, mwr.stats@gmail.com


mwrowe/microRutils documentation built on June 12, 2021, 2:41 p.m.