bind-cols

Glue datasets side by side (column bind).

NoteExperimental

This function is experimental; its interface may change without notice.

Since 0.6.0.

The inputs are matched by row position, so every input must have the same number of rows; output row i merges the ith row of each. Column names must be unique across the inputs. Factor tags merge. Passing no datasets returns (), and a none dataset is skipped.

Usage

bind-cols(
  ..datasets,
)

Parameters

Parameter Default Description
..datasets Datasets to glue, as positional row/column stores.

Returns

A single row-store array with every input’s columns.

Examples

Attach a computed column block to a dataset.

#let wide = bind-cols(base, extra-columns)

See also

bind-rows.

Back to top