normalise_median | R Documentation |
This function performs median normalisation on a numeric vector. It subtracts the median from each element in the vector and then divides the resulting values by the square root of the sum of their squared deviations from the median.
normalise_median(x, remove_na = TRUE)
x |
A numeric vector that will be normalised. |
remove_na |
Boolean indicating whether NA values should be removed. Defaults to TRUE. |
A numeric vector of the same length as x
where each element has
been positionally normalised.
normalise_median(c(1, 2, 3, 4, 5))
normalise_median(c(10, 20, 30, 40, 50))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.