Skip to contents

Apply Min-Max normalization to a numeric vector.

Usage

normalize_min_max(x, na.rm = TRUE)

Arguments

x

a numeric vector. Works in tidyverse mututate function.

na.rm

boolean(TRUE/FALSE)

Value

a normalized numeric vector.

Examples


if (FALSE) { # \dontrun{
mtcars %>%
  mutate(hp_norm = normalize_min_max(hp))
  } # }