cbindSafe: cbindSafe: Column-wise Concatenation of Objects With...

Description Usage Arguments Details Value Author(s)

View source: R/rbindSafe.R

Description

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

Usage

1

Arguments

...

two or more objects such as matrices, data.frames, arrays or vectors to concatenate along the second dimension (adding columns)

Details

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

Value

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

Author(s)

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


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