Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rowwise_table

Row-Wise Constructor for 'data.table'


Description

Similar to the tibble function tribble(), this function allows to construct tabular data in a row-wise fashion.

The first arguments passed as formula will be interpreted as column names. The remaining arguments will be put into the resulting table.

Usage

rowwise_table(..., .key = NULL)

Arguments

...

(any)
Arguments: Column names in first rows as formulas (with empty left hand side), then the tabular data in the following rows.

.key

(character(1))
If not NULL, set the key via data.table::setkeyv() after constructing the table.

Value

Examples

rowwise_table(
  ~a, ~b,
  1, "a",
  2, "b"
)

mlr3misc

Helper Functions for 'mlr3'

v0.10.0
LGPL-3
Authors
Michel Lang [cre, aut] (<https://orcid.org/0000-0001-9754-0393>), Patrick Schratz [aut] (<https://orcid.org/0000-0003-0748-6624>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.