View source: R/general.purpuse.utilities.R
scaleTo | R Documentation |
Scale numeric vector
scaleTo(
x,
from = 0,
to = 1,
minx = min(x, na.rm = TRUE),
maxx = max(x, na.rm = TRUE),
fraction = 1
)
x |
numeric vector to be scaled |
from , to |
target range |
minx , maxx |
true min of "real x" (in case if given x is just subset of the real) |
fraction |
fraction of target range to be used |
scaled value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.