Learn R Programming

SparkR (version 2.1.2)

negate: negate

Description

Unary minus, i.e. negate the expression.

Usage

negate(x)

# S4 method for Column negate(x)

Arguments

x

Column to compute on.

See Also

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

Examples

Run this code
# NOT RUN {
negate(df$c)
# }

Run the code above in your browser using DataLab