View source: R/S03_Utilities.R
new_limits | R Documentation |
A function that rescales a vector of values to have a new minimum and maximum.
new_limits(x, lower, upper, ...)
x |
A vector of numeric values. |
lower |
The new lower limit or minimum value. |
upper |
The new upper limit or maximum value. |
... |
Additional parameters for the
|
A vector of rescaled values.
x <- 1:3
new_limits( x, 0, 1 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.