Mutate a Spark DataFrame

Usage

sdf_mutate(.data, ...)
sdf_mutate_(.data, ..., .dots)

Arguments

.data
A spark_tbl.
...
Named arguments, mapping new column names to the transformation to be applied.
.dots
A named list, mapping output names to transformations.

Description

Use Spark's feature transformers to mutate a Spark DataFrame.

Transforming Spark DataFrames

The family of functions prefixed with sdf_ generally access the Scala Spark DataFrame API directly, as opposed to the dplyr interface which uses Spark SQL. These functions will 'force' any pending SQL in a dplyr pipeline, such that the resulting tbl_spark object returned will no longer have the attached 'lazy' SQL operations. Note that the underlying Spark DataFrame does execute its operations lazily, so that even though the pending set of operations (currently) are not exposed at the R level, these operations will only be executed when you explicitly collect() the table.