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: approxCountDistinct(), corr(), firstItem(), lastItem()

Examples

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

danzafar/tidyspark documentation built on Sept. 30, 2020, 12:19 p.m.