avg {SparkR}R Documentation

avg

Description

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

Usage

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

avg(x, ...)

See Also

Other agg_funcs: approxCountDistinct, approxCountDistinct, approxCountDistinct; countDistinct, countDistinct, countDistinct, n_distinct; count, count, count, n, nrow; first, first; last, last; max; mean; min; sumDistinct, sumDistinct; sum

Examples

## Not run: avg(df$c)

[Package SparkR version 1.5.2 Index]