Call: Call a function with arguments provided individually

Description Usage Arguments Examples

View source: R/functional.R

Description

Call a function with arguments provided individually

Usage

1
Call(fn, ...)

Arguments

fn

The function to call.

...

Arguments to function fn.

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/rmisc documentation built on May 17, 2019, 8:54 a.m.