powered by
Get vector standard deviation by a variable
.pcr_sd(vec, var)
A vector of numerics
A grouping variable
# NOT RUN { vec <- rnorm(6, 30, 1) var <- rep(c('group1', 'group2'), 3) pcr:::.pcr_sd(vec, var) # }
Run the code above in your browser using DataLab