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)

See Also

Other agg_funcs: approxCountDistinct, approxCountDistinct, approxCountDistinct; avg, avg; countDistinct, countDistinct, countDistinct, n_distinct; count, count, count, n, nrow; first, first; last, last; max; mean; min; sumDistinct, sumDistinct

Examples

## Not run: sum(df$c)

[Package SparkR version 1.5.1 Index]