sd {SparkR}R Documentation

sd

Description

Aggregate function: alias for stddev_samp

Usage

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

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

sd(x, na.rm = FALSE)

stddev(x)

See Also

stddev_pop, stddev_samp

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; mean; min; 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: 
##D stddev(df$c)
##D select(df, stddev(df$age))
##D agg(df, sd(df$age))
## End(Not run)

[Package SparkR version 1.6.1 Index]