View source: R/utility_math_funs.R
normalise | R Documentation |
scale each element by the arithmic mean
normalise(vector, scalar = 1, na.rm = T)
vector |
numeric vector to normalise |
scalar |
multiplier to change average values |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
na's will be ignored
vector of normalised values to have mean = scalar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.