fabs {extras}R 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: ilogit(), ilog(), inv_logit(), invlogit(), log<-(), logit<-(), logit(), phi(), pow(), step()

Examples

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

[Package extras version 0.6.1 Index]