powered by
Aggregate function: returns the average of the values in a group.
avg(x, ...)# S4 method for Column avg(x)
# S4 method for Column avg(x)
Column to compute on or a GroupedData object.
additional argument(s) when x is a GroupedData object.
x
Other agg_funcs: agg, countDistinct, count, first, kurtosis, last, max, mean, min, sd, skewness, stddev_pop, stddev_samp, sumDistinct, sum, var_pop, var_samp, var
agg
countDistinct
count
first
kurtosis
last
max
mean
min
sd
skewness
stddev_pop
stddev_samp
sumDistinct
sum
var_pop
var_samp
var
# NOT RUN { avg(df$c) # }
Run the code above in your browser using DataLab