sd {SparkR}R Documentation

sd

Description

Aggregate function: alias for stddev_samp

Usage

sd(x, na.rm = FALSE)

stddev(x)

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

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

See Also

stddev_pop, stddev_samp

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

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 2.0.0 Index]