Learn R Programming

reb (version 1.50.0)

absMax: Absolute Maxima

Description

Returns the absolute maxima of the input values.

Usage

absMax(x)

Arguments

x
numeric argument

Value

absMax returns the absolute maximum of all the values present in the arguments as double persurving the sign. Essentially max(abs(x),na.rm=T).

Examples

Run this code
  absMax(c(1,2,3,4))
  absMax(c(-1,-2,-3,-4))

Run the code above in your browser using DataLab