avg {SparkR} | R Documentation |
Aggregate function: returns the average of the values in a group.
## S4 method for signature 'Column' avg(x) avg(x, ...)
Other agg_funcs: agg
,
summarize
;
approxCountDistinct
,
approxCountDistinct
,
approxCountDistinct
;
countDistinct
, countDistinct
,
n_distinct
, n_distinct
;
count
, n
, n
;
first
, first
;
kurtosis
, kurtosis
;
last
, last
;
max
; mean
; 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
## Not run: avg(df$c)