fabs: Absolute

Description Usage Arguments Details See Also Examples

View source: R/fabs.R

Description

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

Usage

1
fabs(x)

Arguments

x

An existing R object.

Details

A wrapper on abs().

See Also

Other translations: ilogit(), invlogit(), log<-(), logit<-(), logit(), phi(), pow()

Examples

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

extras documentation built on Aug. 5, 2021, 9:07 a.m.