nanvl {SparkR}R Documentation

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 signature 'Column'
nanvl(y, x)

Arguments

y

second Column.

x

first Column.

Note

nanvl since 1.5.0

See Also

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

Examples

## Not run: nanvl(df$c, x)

[Package SparkR version 2.2.1 Index]