wargs: Call with arguments.

Description Usage Arguments Value Examples

View source: R/wargs.R

Description

Call with arguments.

Usage

1
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

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

dostats documentation built on May 29, 2017, 6:07 p.m.

Search within the dostats package
Search all R packages, documentation and source code