fabs: Absolute

View source: R/fabs.R

fabsR Documentation

Absolute

Description

Computes the absolute value of x. Used in TMB as replacement for abs() which is seemingly ambiguous.

Usage

fabs(x)

Arguments

x

An existing R object.

Details

A wrapper on abs⁠()⁠.

See Also

Other translations: exp10(), exp2(), ilog10(), ilog2(), ilogit(), ilog(), inv_logit(), invlogit(), log10<-(), log2<-(), log<-(), logit<-(), logit(), phi(), pow(), step()

Examples

fabs(c(0, -1, 2))

poissonconsulting/extras documentation built on Jan. 18, 2024, 1:18 a.m.