sumDistinct {SparkR}R Documentation

sumDistinct

Description

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

Usage

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

sumDistinct(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; sum

Examples

## Not run: sumDistinct(df$c)

[Package SparkR version 1.5.2 Index]