var {SparkR}R Documentation

var

Description

Aggregate function: alias for var_samp.

Usage

var(x, y = NULL, na.rm = FALSE, use)

variance(x)

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

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

Arguments

x

a Column to compute on.

y, na.rm, use

currently not used.

Note

var since 1.6.0

variance since 1.6.0

See Also

var_pop, var_samp

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

Examples

## Not run: 
##D variance(df$c)
##D select(df, var_pop(df$age))
##D agg(df, var(df$age))
## End(Not run)

[Package SparkR version 2.2.1 Index]