pop_sd | R Documentation |
This function calculates the population standard deviation for a numeric vector.
pop_sd(x)
x |
A numeric vector for which the population standard deviation should be calculated. |
A numeric value representing the population standard deviation of the vector.
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.