normalize: Normalize numeric values

View source: R/math-related-functions.R

normalizeR Documentation

Normalize numeric values

Description

Scales the values of the provided vector to values between 0 and 1.

Usage

normalize(x)

Arguments

x

A numeric vector.

Value

A numeric with the same length as x.

Examples

purrr::map_df(.x = mtcars[,sapply(mtcars, is.numeric)],
              .f = normalize)

kueckelj/confuns documentation built on June 28, 2024, 9:19 a.m.