SparkR (version 2.1.2)

abs: abs

Description

Computes the absolute value.

Usage

# S4 method for Column
abs(x)

Arguments

x

Column to compute on.

See Also

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

Examples

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

Run the code above in your browser using DataLab