wargs: Call with arguments

View source: R/wargs.R

wargsR Documentation

Call with arguments

Description

Call with arguments

Usage

wargs(f, ..., args = pairlist(...), envir = parent.frame())

Arguments

f

a function

...

extra arguments

args

alternate way to provide arguments as a pairlist.

envir

environment to use for the function.

Value

a function that takes 1 argument and calls f with the single argument and the additional ... appended.

Examples

mean2 <- wargs(mean, na.rm=TRUE)

dostats documentation built on May 11, 2022, 1:08 a.m.