Learn R Programming

SparkR (version 2.1.2)

sd: sd

Description

Aggregate function: alias for stddev_samp

Usage

sd(x, na.rm = FALSE)

stddev(x)

# S4 method for Column sd(x)

# S4 method for Column stddev(x)

Arguments

x

Column to compute on.

na.rm

currently not used.

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

Run this code
# NOT RUN {
stddev(df$c)
select(df, stddev(df$age))
agg(df, sd(df$age))
# }

Run the code above in your browser using DataLab