Description
Calculate z-scores (i.e., standardize or obtain the standard scores)
Usage
z_score(x = NULL, na.rm = TRUE)
Value
the output will be a vector of z-scores.
Arguments
- x
a numeric vector
- na.rm
logical. If na.rm = TRUE
, NA values in the vector
will be removed before calculating z-scores (default = TRUE).