Learn R Programming

ffbase (version 0.13.3)

abs.ff_vector: Math for ff vectors

Description

These mathematical functions implement ff_vector specific math and handle the following functions from the Math family:

  • Math: "abs", "sign", "sqrt", "ceiling", "floor", "trunc", "log", "log10", "log2", "log1p", "acos", "acosh", "asin", "asinh", "atan", "atanh", "exp", "expm1", "cos", "cosh", "sin", "sinh", "tan", "tanh", "gamma", "lgamma", "digamma", "trigamma"

  • Math2: "round", "signif"

The operators require x to be an ff_vector.

Usage

# S3 method for ff_vector
abs (x)

# S3 method for ff_vector sign (x)

# S3 method for ff_vector sqrt (x)

# S3 method for ff_vector ceiling (x)

# S3 method for ff_vector floor (x)

# S3 method for ff_vector trunc (x, ...)

# S3 method for ff_vector log10 (x)

# S3 method for ff_vector log2 (x)

# S3 method for ff_vector log1p (x)

# S3 method for ff_vector acos (x)

# S3 method for ff_vector acosh (x)

# S3 method for ff_vector asin (x)

# S3 method for ff_vector asinh (x)

# S3 method for ff_vector atan (x)

# S3 method for ff_vector atanh (x)

# S3 method for ff_vector exp (x)

# S3 method for ff_vector expm1 (x)

# S3 method for ff_vector cos (x)

# S3 method for ff_vector cosh (x)

# S3 method for ff_vector sin (x)

# S3 method for ff_vector sinh (x)

# S3 method for ff_vector tan (x)

# S3 method for ff_vector tanh (x)

# S3 method for ff_vector gamma (x)

# S3 method for ff_vector lgamma (x)

# S3 method for ff_vector digamma (x)

# S3 method for ff_vector trigamma (x)

# S3 method for ff_vector log (x, base)

# S3 method for ff_vector round (x, digits)

# S3 method for ff_vector signif (x, digits)

Arguments

x

a numeric ff_vector

...

for trunc, currently not used

base

base for log

digits

digits for round and signif

Value

an ff_vector. For the definition of the operators see the base package of R.