sum {SparkR}R Documentation

sum

Description

Aggregate function: returns the sum of all values in the expression.

Usage

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

Arguments

x

Column to compute on.

Note

sum since 1.5.0

See Also

Other agg_funcs: agg, avg, countDistinct, count, first, kurtosis, last, max, mean, min, sd, skewness, stddev_pop, stddev_samp, sumDistinct, var_pop, var_samp, var

Examples

## Not run: sum(df$c)

[Package SparkR version 2.2.3 Index]