# cbind

0th

Percentile

##### Bind an object to data.table

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

Keywords
data
##### Usage
cbind(...)
rbind(...)
##### Arguments
...
data.table followed by vectors, matrices, data.frames or data.tables.
##### 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.

##### Value

• A data.table.

cbind, rbind