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

Examples



## Not run: avg(df$c)




[Package SparkR version 3.2.4 Index]