rescale: Uniform Rescaling

View source: R/utils.R

rescaleR Documentation

Uniform Rescaling

Description

Uniform Rescaling

Usage

rescale(
  x,
  new_min = 0,
  new_max = 1,
  old_min = min(x, na.rm = TRUE),
  old_max = max(x, na.rm = TRUE)
)

Arguments

x

A numeric vector to rescale

new_min

New min

new_max

New max

old_min

Old min

old_max

Old max

Value

A rescaled version of x.


tactile documentation built on May 31, 2023, 9:47 p.m.