Learn R Programming

sitar (version 1.4.0)

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)

Value

Returns a vector of length v.

Arguments

v

vector

vcall

expression

inverse

logical

Author

Tim Cole tim.cole@ucl.ac.uk

Details

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