Skip to main content

Module dataframes

Module dataframes 

Source
Expand description

Data frame manipulation builtins — merge, subset, transform, with.

These builtins operate on data frames (lists with class “data.frame”). subset, transform, and with are pre-eval builtins because they need to evaluate expressions in the context of a data frame’s columns. split() is in interp.rs since it already existed there.

Statics§

__BUILTIN_REG_BUILTIN_MERGE 🔒
__PRE_EVAL_REG_PRE_EVAL_SUBSET 🔒
__PRE_EVAL_REG_PRE_EVAL_TRANSFORM 🔒
__PRE_EVAL_REG_PRE_EVAL_WITH 🔒

Functions§

build_data_frame 🔒
Build a data frame from columns with automatic row names.
builtin_merge 🔒
Merge two data frames by common columns (SQL-style join).
coerce_to_string_vec 🔒
Coerce an RValue to a character vector of column names.
df_col_index 🔒
Find a column by name in a data frame, returning its index.
df_col_names 🔒
Extract a data frame’s column names from its “names” attribute.
df_nrow 🔒
Get the number of rows in a data frame.
df_to_env 🔒
Create a child environment with data frame columns as bindings.
pre_eval_subset 🔒
Subset a data frame by condition and/or column selection.
pre_eval_transform 🔒
Add or modify columns in a data frame.
pre_eval_with 🔒
Evaluate an expression in the context of a data frame.
resolve_column_selection 🔒
Resolve a column selection expression to column indices.
select_rows_from_column 🔒
Select rows from a column vector based on match pairs.
subset_rvalue_by_mask 🔒
Subset an RValue column by a boolean mask.
subset_vector_by_mask 🔒
Subset a vector by a boolean mask (true = keep, false/NA = drop).
subset_vector_impl 🔒
Subset a plain vector by a logical condition.