rerange | R Documentation |
The function performs a linear transformation of the data, such that
afterwards range(data)=c(theMin,theMax)
.
rerange(data, min.goal = 0, max.goal = 1, min.data =
min(data), max.data = max(data), center = NA)
data |
vector with the |
min.goal |
new minimum value |
max.goal |
new maximum value |
min.data |
old minimum value |
max.data |
old maximum value |
center |
which old value should become the new center |
vector with the transformed data
Dominik Reusser
klaR:::rerange(data=1:20)
klaR:::rerange(data=1:30, center=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.