powered by
Take the maximum of the absolute values of the input
maxabs(x, na.rm = FALSE)
The maximum of the absolute value of the input
a numeric vector or array
a logical indicating whether missing values should be removed.
x <- c(5, -2, 8, -20, 2.3) maxabs(x)
Run the code above in your browser using DataLab