ScoreScaling | R Documentation |
Scoring functions
score.rescale(x, xlim = NULL, method = "linear", ...)
x |
A numeric vector of data. |
xlim |
The scoring range. If null, derives range from data. |
method |
Only 'linear' is supported. |
... |
Arguments for min, max, pmin, pmax. |
p |
A percentage buffer to add to the maximum value. |
Returns scores.
min, max, pmin, pmax
score.max(c(0.5, 1, 2))
score.max(c(0.5, 1, 2), p=0.25)
score.rescale(c(0.5, 1, 2))
score.clamp(c(-0.5, 1, 2))
score.clamp(c(-0.5, 1, 2), xlim=c(-1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.