avg: avg

Description Usage Arguments Note See Also Examples

Description

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

Usage

1
2
3
4
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 aggregate functions: column_aggregate_functions, corr(), count(), cov(), first(), last()

Examples

1
## Not run: avg(df$c)

SparkR documentation built on June 3, 2021, 5:05 p.m.