Learn R Programming

sitar (version 1.0.4)

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, ^, *, /, +, -.