Arguments
x
An object coercable to a Spark DataFrame (typically, a
tbl_spark).
input
The name of the input column.
reference
The reference label. This variable is omitted when
generating dummy variables (to avoid perfect multi-collinearity if
all dummy variables were to be used in the model fit); to generate
dummy variables for all columns this can be explicitly set as NULL.
levels
The set of levels for which dummy variables should be generated.
By default, constructs one variable for each unique value occurring in
the column specified by input.
labels
An optional R list, mapping values in the input
column to column names to be assigned to the associated dummy variable.
envir
An optional R environment; when provided, it will be filled
with useful auxiliary information. See Auxiliary Information for
more information.