Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

zscore

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

Project MOSAIC Statistics and Mathematics Teaching Utilities

v1.8.3
GPL (>= 2)
Authors
Randall Pruim [aut, cre], Daniel T. Kaplan [aut], Nicholas J. Horton [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.