Compute z-scores
zscore(x, na.rm = getOption("na.rm", FALSE))
a numeric vector
a logical indicating whether missing values should be removed
# NOT RUN {
iris %>%
group_by(Species) %>%
mutate(zSepal.Length = zscore(Sepal.Length)) %>%
head()
# }
Run the code above in your browser using DataLab