otherwise: otherwise

Description Usage Arguments Note See Also

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

1
2
3
4
otherwise(x, value)

## S4 method for signature 'Column'
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 column_func: alias(), between(), cast(), endsWith(), over(), startsWith(), substr()


SparkR documentation built on June 3, 2021, 5:05 p.m.