powered by
This function calculates the population standard deviation for a numeric vector.
pop_sd(x)
A numeric value representing the population standard deviation of the vector.
A numeric vector for which the population standard deviation should be calculated.
# Example usage: library(dplyr) df <- data.frame(weight = c(2, 4, 6, 8, 10)) df |> summarize(population_mean = mean(weight), population_sd = pop_sd(weight))
Run the code above in your browser using DataLab