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)

Example output

nima v0.5.0: Nima Hejazi's R Toolbox
[1] 100

nima documentation built on March 13, 2020, 2:10 a.m.

Related to absmax in nima...