SparkR (version 2.1.2)

nanvl: nanvl

Description

Returns col1 if it is not NaN, or col2 if col1 is NaN. Both inputs should be floating point columns (DoubleType or FloatType).

Usage

nanvl(y, x)

# S4 method for Column nanvl(y, x)

Arguments

y

second Column.

x

first Column.

See Also

Other normal_funcs: abs, bitwiseNOT, coalesce, column, expr, greatest, ifelse, isnan, least, lit, negate, randn, rand, struct, when

Examples

Run this code
# NOT RUN {
nanvl(df$c, x)
# }

Run the code above in your browser using DataLab