powered by
Compute z-scores
zscore(x, na.rm = getOption("na.rm", FALSE))
a numeric vector
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()
Run the code above in your browser using DataLab