mean {SparkR}R Documentation

mean

Description

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

Usage

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

Arguments

x

Column to compute on.

Note

mean since 1.5.0

See Also

Other agg_funcs: agg, avg, countDistinct, count, first, kurtosis, last, max, min, sd, skewness, stddev_pop, stddev_samp, sumDistinct, sum, var_pop, var_samp, var

Examples

## Not run: mean(df$c)

[Package SparkR version 2.2.3 Index]