rescale.numeric function

Function to rescale numeric vectors

Function to rescale numeric vectors

Rescale continuous vector to have specified minimum and maximum

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

Returns

Re-scaled vector

Details

From: The package list("scales")

Author(s)

Hadley Wickham

  • Maintainer: Fabio Ashtar Telarico
  • License: GPL (>= 3)
  • Last published: 2024-10-31