nanvl {SparkR}R Documentation

nanvl

Description

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

Usage

nanvl(y, x)

## S4 method for signature 'Column'
nanvl(y, x)

See Also

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

Examples

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

[Package SparkR version 2.0.0 Index]