rescale: Rescale

Description Usage Arguments Examples

View source: R/rescale.R

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 Dec. 21, 2017, 8:04 a.m.