Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ff_math

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 class 'ff_vector'
 abs(x)

## S3 method for class 'ff_vector'
 sign(x)

## S3 method for class 'ff_vector'
 sqrt(x)

## S3 method for class 'ff_vector'
 ceiling(x)

## S3 method for class 'ff_vector'
 floor(x)

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

## S3 method for class 'ff_vector'
 log10(x)

## S3 method for class 'ff_vector'
 log2(x)

## S3 method for class 'ff_vector'
 log1p(x)

## S3 method for class 'ff_vector'
 acos(x)

## S3 method for class 'ff_vector'
 acosh(x)

## S3 method for class 'ff_vector'
 asin(x)

## S3 method for class 'ff_vector'
 asinh(x)

## S3 method for class 'ff_vector'
 atan(x)

## S3 method for class 'ff_vector'
 atanh(x)

## S3 method for class 'ff_vector'
 exp(x)

## S3 method for class 'ff_vector'
 expm1(x)

## S3 method for class 'ff_vector'
 cos(x)

## S3 method for class 'ff_vector'
 cosh(x)

## S3 method for class 'ff_vector'
 sin(x)

## S3 method for class 'ff_vector'
 sinh(x)

## S3 method for class 'ff_vector'
 tan(x)

## S3 method for class 'ff_vector'
 tanh(x)

## S3 method for class 'ff_vector'
 gamma(x)

## S3 method for class 'ff_vector'
 lgamma(x)

## S3 method for class 'ff_vector'
 digamma(x)

## S3 method for class 'ff_vector'
 trigamma(x)

## S3 method for class 'ff_vector'
 log(x, base)

## S3 method for class 'ff_vector'
 round(x, digits)

## S3 method for class '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.


ffbase

Basic Statistical Functions for Package 'ff'

v0.13.3
GPL-3
Authors
Edwin de Jonge, Jan Wijffels, Jan van der Laan
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.