avg {SparkR}R Documentation

avg

Description

Aggregate function: returns the average of the values in a group.

Usage

avg(x, ...)

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

Arguments

x

Column to compute on or a GroupedData object.

...

additional argument(s) when x is a GroupedData object.

Note

avg since 1.4.0

See Also

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

Examples

## Not run: avg(df$c)

[Package SparkR version 2.1.2 Index]