data.table (version 1.6.5)

cbind: Bind an object to data.table

Description

Binds columns (cbind) or rows (rbind) to a data.table, returning a data.table.

Usage

cbind(...)
rbind(...)

Arguments

...
data.table followed by vectors, matrices, data.frames or data.tables.

Value

  • A data.table.

Details

These functions are masked in data.table because of this feature in cbind :

The data frame method will be used if at least one argument is a data frame. This means that cbind(DT,DF) dispatches to the S3 method cbind.data.frame even when cbind.data.table is provided by data.table. Therefore, we have masked these functions. Warning messages will be presented to the user (by R) when the data.table package is loaded. If the first argument is not a data.table, then they revert to the base versions.

See Also

cbind, rbind