SparkR (version 2.1.2)

mean: mean

Description

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

Usage

# S4 method for Column
mean(x)

Arguments

x

Column to compute on.

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

Run this code
# NOT RUN {
mean(df$c)
# }

Run the code above in your browser using DataLab