maxabs: Get largest value by absolute comparison.

maxabsR Documentation

Get largest value by absolute comparison.

Description

General utility function.

Usage

maxabs(v)

Arguments

v

A numeric vector.

Details

Returns the original signed value with the largest absolute value in the vector. In case of equal absolutes between a positive and negative value, the positive value will always be the one that is returned.

Value

A numeric value.


bartongroup/RATS documentation built on June 8, 2022, 12:40 a.m.