maxabs | R Documentation |
Take the maximum of the absolute values of the input
maxabs(x, na.rm = FALSE)
x |
a numeric vector or array |
na.rm |
a logical indicating whether missing values should be removed. |
The maximum of the absolute value of the input
x <- c(5, -2, 8, -20, 2.3)
maxabs(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.