Skip to contents

Evaluate a R expression in an environment constructed from a SparkDataFrame with() allows access to columns of a SparkDataFrame by simply referring to their name. It appends every column of a SparkDataFrame into a new environment. Then, the given expression is evaluated in this new environment.

Usage

with(data, expr, ...)

# S4 method for SparkDataFrame
with(data, expr, ...)

Arguments

data

(SparkDataFrame) SparkDataFrame to use for constructing an environment.

expr

(expression) Expression to evaluate.

...

arguments to be passed to future methods.

Note

with since 1.6.0

Examples

if (FALSE) {
with(irisDf, nrow(Sepal_Width))
}