scalevalues | R Documentation |
Normalize values of a vector, matrix or data.frame between 0 and 1
scalevalues(x, ...)
x |
numeric (vector, matrix or data.frame) that will be scaled |
... |
further arguments passed to the functions min and max e.g. na.rm |
depending on x a normalized vector, matrix or data.frame is returned
Simon Frey
ex <- c(3,5,10,2,9,20)
scalevalues(ex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.