maxabs {broman} | 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)