powered by
A new '>Column is created to represent the literal value. If the parameter is a '>Column, it is returned unchanged.
lit(x)# S4 method for ANY lit(x)
# S4 method for ANY lit(x)
a literal value or a Column.
Other normal_funcs: abs, bitwiseNOT, coalesce, column, expr, greatest, ifelse, isnan, least, nanvl, negate, randn, rand, struct, when
abs
bitwiseNOT
coalesce
column
expr
greatest
ifelse
isnan
least
nanvl
negate
randn
rand
struct
when
# NOT RUN { lit(df$name) select(df, lit("x")) select(df, lit("2015-01-01")) # }
Run the code above in your browser using DataLab