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 July 4, 2024, 4:53 p.m.