negate {SparkR}R Documentation

negate

Description

Unary minus, i.e. negate the expression.

Usage

negate(x)

## S4 method for signature 'Column'
negate(x)

Arguments

x

Column to compute on.

Note

negate since 1.5.0

See Also

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

Examples

## Not run: negate(df$c)

[Package SparkR version 2.1.2 Index]