R: Bind Columns by Reference

rcbind {mlr3misc} | R Documentation

## Bind Columns by Reference

### Description

Performs `base::cbind()` on data.tables, possibly by reference.

### Usage

    rcbind(x, y)

### Arguments

`x` | (`data.table::data.table()`) `data.table::data.table()` to add columns to.
`y` | (`data.table::data.table()`) `data.table::data.table()` to take columns from.

### Value

(`data.table::data.table()`): Updated `x` .

### Examples

    x = data.table::data.table(a = 1:3, b = 3:1)
    y = data.table::data.table(c = runif(3))
    rcbind(x, y)

[Package mlr3misc version 0.9.5 Index]