Learn R Programming

IFC (version 0.1.7)

fastCbind: Combine by Columns

Description

Helper to combine by columns

Usage

fastCbind(obj1, obj2, add_id = FALSE)

Value

a combined object

Arguments

obj1

an object either a data.frame, a list or something coercible to numeric matrix.

obj2

an object either a data.frame, a list or something coercible to numeric matrix.

add_id

a bool determining if 1st column of returned object should be given 1 to nrow integers

Details

if obj1 or obj2 is a data.frame returned object will inherit class of obj1 or obj2 respectively in this order. /!\ if obj1 or obj2 needs to be coerced take care that it can not handle factor during object coercion