| lit {SparkR} | R Documentation |
A new Column is created to represent the literal value. If the parameter is a Column, it is returned unchanged.
## S4 method for signature 'ANY' lit(x) lit(x)
x |
a literal value or a Column. |
lit since 1.5.0
Other normal_funcs: Column-class,
column, column,
column,
column,character-method,
column,jobj-method; abs,
abs,Column-method;
bitwiseNOT, bitwiseNOT,
bitwiseNOT,Column-method;
expr, expr,
expr,character-method;
greatest, greatest,
greatest,Column-method;
ifelse, ifelse,Column-method;
is.nan, is.nan,Column-method,
isnan, isnan,
isnan,Column-method; least,
least, least,Column-method;
nanvl, nanvl,
nanvl,Column-method; negate,
negate, negate,Column-method;
randn, randn,
randn, randn,missing-method,
randn,numeric-method; rand,
rand, rand,
rand,missing-method,
rand,numeric-method; struct,
struct,
struct,characterOrColumn-method;
when, when,
when,Column-method
## Not run:
lit(df$name)
select(df, lit("x"))
select(df, lit("2015-01-01"))
## End(Not run)