subsetArgsByFormals: Subset list of arguments by functions

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

find arguments matched by formals of passed functions,

Usage

1
subsetArgsByFormals(args, ..., remove.dots = TRUE)

Arguments

args

list of arguments with names indicate the formals.

...

functions used to parse formals.

remove.dots

logical value indicate whether to include dots in formals or not.

Value

argumnets that matched with passed function.

Author(s)

Tengfei Yin

Examples

1
2
args <- list(x = 1:3, simplify = TRUE, b = "b")
subsetArgsByFormals(args, plot, sapply)

lawremi/biovizBase documentation built on Dec. 21, 2021, 9:42 a.m.