zscore | R Documentation |
Compute z-scores
zscore(x, na.rm = getOption("na.rm", FALSE))
x |
a numeric vector |
na.rm |
a logical indicating whether missing values should be removed |
data(penguins, package = "palmerpenguins")
penguins |>
group_by(species) |>
mutate(zbill_length_mm = zscore(bill_length_mm, na.rm = TRUE)) |>
head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.