zscore: Compute z-scores

View source: R/zscore.R

zscoreR 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()

mosaic documentation built on Sept. 21, 2022, 9:12 a.m.