sumDistinct {SparkR}R Documentation

sumDistinct

Description

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

Usage

sumDistinct(x)

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

Arguments

x

Column to compute on.

Note

sumDistinct since 1.4.0

See Also

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

Examples

## Not run: sumDistinct(df$c)

[Package SparkR version 2.2.1 Index]