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)

See Also

Other agg_funcs: agg, summarize; approxCountDistinct, approxCountDistinct, approxCountDistinct; avg, avg; countDistinct, countDistinct, n_distinct, n_distinct; count, n, n; first, first; kurtosis, kurtosis; last, last; max; min; sd, sd, stddev, stddev; skewness, skewness; stddev_pop, stddev_pop; stddev_samp, stddev_samp; sumDistinct, sumDistinct; sum; var_pop, var_pop; var_samp, var_samp; var, var, variance, variance

Examples

## Not run: mean(df$c)

[Package SparkR version 1.6.3 Index]