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)

Arguments

x

Column to compute on.

na.rm

currently not used.

Note

sd since 1.6.0

stddev since 1.6.0

See Also

stddev_pop, stddev_samp

Other agg_funcs: agg, avg, countDistinct, count, first, kurtosis, last, max, mean, min, 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.1.2 Index]