rescale: Rescale

Description Usage Arguments Examples

Description

Normalizes a numeric vector by standardizing the values between 0-1.

Usage

1
rescale(x, digits = 2, na.rm = TRUE)

Arguments

x

a vector of numeric values

digits

number of digits to round the output to

na.rm

logical. Should missing values (including NaN) be removed?

Examples

1
2
x <- runif(25, min = 5, max = 20)
rescale(x)

bradleyboehmke/myfirstpackage documentation built on May 28, 2019, 7:12 p.m.