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