absmax: Maximum of Absolute Values of Vector

Description Usage Arguments Value Examples

View source: R/absmax.R

Description

Take the maximum of the absolute values of an input vector.

Usage

1
absmax(x, na.rm = FALSE)

Arguments

x

A numeric vector or array.

na.rm

A logical indicating whether missing values should be removed.

Value

The maximum of the absolute values of elements of the input vector.

Examples

1
2
x <- c(5, 3, -9, -100, 3.14159, 7.5)
absmax(x)

nhejazi/nima documentation built on March 10, 2020, 1:10 a.m.