Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


sitar (version 1.0.10)

funcall: Function call with optional inverse

Description

Applies an expression to vector v, optionally inverting the expression first. For example if the expression is log, funcall returns log(v) if inverse is FALSE, and exp(v) if inverse is TRUE.

Usage

funcall(v, vcall, inverse = FALSE)

Arguments

v

vector

vcall

expression

inverse

logical

Value

Returns a vector of length v.

Details

Inverse covers functions log, exp, sqrt, ^, *, /, +, -.