standf: Standardize a numeric vector

Description Usage Arguments Value Examples

View source: R/normf_standf.R

Description

Takes a numeric vector and standardizes it based on standard deviation and mean.

Usage

1
standf(x, na.rm = FALSE)

Arguments

x

Numeric vector

na.rm

Logical value determining whether or not to remove NA values when calculating standard deviation and mean. Defaults to FALSE.

Value

Numeric vector that is standardized

Examples

1
2
standf(c(1, 2, 3, 4, 5))
standf(c(1, 2, 3, 4, 5), na.rm = TRUE)

ryanmcnamara4/myPackage documentation built on Dec. 22, 2021, 8:18 p.m.