Learn R Programming

extras (version 0.2.0)

fabs: 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(), invlogit(), log<-(), logit<-(), logit(), phi(), pow()

Examples

Run this code
# NOT RUN {
fabs(c(0, -1, 2))
# }

Run the code above in your browser using DataLab