| struct {SparkR} | R Documentation |
Creates a new struct column that composes multiple input columns.
struct(x, ...) ## S4 method for signature 'characterOrColumn' struct(x, ...)
x |
a column to compute on. |
... |
optional column(s) to be included. |
struct since 1.6.0
Other normal_funcs: abs,
bitwiseNOT, coalesce,
column, expr,
greatest, ifelse,
isnan, least,
lit, nanvl,
negate, randn,
rand, when
## Not run:
##D struct(df$c, df$d)
##D struct("col1", "col2")
## End(Not run)