rescale.numeric: Function to rescale numeric vectors

View source: R/00.helpers.R

rescale.numericR Documentation

Function to rescale numeric vectors

Description

Rescale continuous vector to have specified minimum and maximum

Usage

rescale.numeric(
  x,
  to = c(0, 1),
  from = range(x, na.rm = TRUE, finite = TRUE),
  ...
)

Arguments

x

A vector to re-scale

to

output range (numeric vector of length two)

from

input range (vector of length two). If not given, is calculated from the range of x

Details

From: The package scales

Value

Re-scaled vector

Author(s)

Hadley Wickham


FinNet documentation built on Oct. 31, 2024, 5:07 p.m.