ifelse {SparkR} | R Documentation |
Evaluates a list of conditions and returns yes
if the conditions are satisfied.
Otherwise no
is returned for unmatched conditions.
## S4 method for signature 'Column' ifelse(test, yes, no)
Other normal_funcs: abs
;
bitwiseNOT
, bitwiseNOT
;
col
, column
,
column
; expr
,
expr
; greatest
,
greatest
; is.nan
,
isnan
, isnan
;
least
, least
;
lit
, lit
;
nanvl
, nanvl
;
negate
, negate
;
randn
, randn
,
randn
; rand
,
rand
, rand
;
struct
, struct
;
when
## Not run: ifelse(df$a > 1 & df$b > 2, 0, 1)