Call: Call a function with arguments provided individually.

Description Usage Arguments Value See Also Examples

Description

Call a function with arguments provided individually.

Usage

1
Call(fn, ...)

Arguments

fn

The function to call.

...

Arguments to function fn.

Value

The return value of the function call.

See Also

Other Functionals: And, Compose, Delay_by, Dot_every, FMap, Fail_with, Log_to, Maybe, Partial

Examples

1
2
3
4
5
funs <- list("mean", "sd", "var")
sapply(funs, Call, 1:100)

## invoke an anonymous function
Call(function(a, b) a*b, 3, 4)

gschofl/gsmisc documentation built on May 17, 2019, 8:52 a.m.