zscore {mosaic} | R Documentation |
Compute z-scores
Description
Compute z-scores
Usage
zscore(x, na.rm = getOption("na.rm", FALSE))
Arguments
x |
a numeric vector |
na.rm |
a logical indicating whether missing values should be removed |
Examples
data(penguins, package = "palmerpenguins")
penguins |>
group_by(species) |>
mutate(zbill_length_mm = zscore(bill_length_mm, na.rm = TRUE)) |>
head()
[Package mosaic version 1.9.1 Index]