Learn R Programming

SciencesPo (version 1.02.12)

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

encoding

UTF-8

Examples

Run this code
x <- sample(10)
zscore(x)

Run the code above in your browser using DataLab