powered by
Take the maximum of the absolute values of an input vector.
absmax(x, na.rm = FALSE)
A numeric vector or array.
A logical indicating whether missing values should be removed.
The maximum of the absolute values of elements of the input vector.
# NOT RUN { x <- c(5, 3, -9, -100, 3.14159, 7.5) absmax(x) # }
Run the code above in your browser using DataLab