otherwise {SparkR}R Documentation

otherwise

Description

If values in the specified column are null, returns the value. Can be used in conjunction with when to specify a default value for expressions.

Usage

## S4 method for signature 'Column'
otherwise(x, value)

otherwise(x, value)

Arguments

x

a Column.

value

value to replace when the corresponding entry in x is NA. Can be a single value or a Column.

Note

otherwise since 1.5.0

See Also

Other colum_func: alias, alias,Column-method; between, between, between,Column-method; cast, cast, cast,Column-method; endsWith, endsWith, endsWith,Column-method; over, over, over,Column,WindowSpec-method; startsWith, startsWith, startsWith,Column-method; substr, substr,Column-method


[Package SparkR version 2.0.1 Index]