maxabs: Get largest value by absolute comparison.

Description Usage Arguments Details Value

View source: R/func.R

Description

General utility function.

Usage

1
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 May 21, 2018, 4:42 a.m.