Aggregate function: returns the average of the values in a group.
Usage
avg(x, ...)
# S4 method for class 'Column'
avg(x)
Arguments
- x
Column to compute on or a GroupedData object.
- ...
additional argument(s) when x
is a GroupedData object.
Examples
if (FALSE) avg(df$c) # \dontrun{}