| auto_mutate | R Documentation |
Works exactly like dplyr::mutate(), but also captures each expression
and registers the resulting variable in the codebook. Type, source columns,
categories, and source code are inferred automatically - you only need to
provide human-readable labels.
auto_mutate(.data, labels = list(), block = "", ...)
.data |
A Spark DataFrame (tbl_spark) or local data frame. |
labels |
Named list mapping variable names to labels (descriptions). Variables not in this list get their own name as label. |
block |
Optional character label for the pipeline block/section (e.g. "Demographic variables"). Groups variables in the codebook. |
... |
Named expressions, same syntax as |
The transformed data frame (same class as input).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.