powered by
Creates a new struct column that composes multiple input columns.
struct(x, ...)# S4 method for characterOrColumn struct(x, ...)
# S4 method for characterOrColumn struct(x, ...)
a column to compute on.
optional column(s) to be included.
Other normal_funcs: abs, bitwiseNOT, coalesce, column, expr, greatest, ifelse, isnan, least, lit, nanvl, negate, randn, rand, when
abs
bitwiseNOT
coalesce
column
expr
greatest
ifelse
isnan
least
lit
nanvl
negate
randn
rand
when
# NOT RUN { struct(df$c, df$d) struct("col1", "col2") # }
Run the code above in your browser using DataLab