Learn R Programming

fake (version 1.4.0)

MatchingArguments: Matching arguments

Description

Returns a vector of overlapping character strings between extra_args and arguments from function FUN. If FUN is taking ... as input, this function returns extra_args.

Usage

MatchingArguments(extra_args, FUN)

Value

A vector of overlapping arguments.

Arguments

extra_args

vector of character strings.

FUN

function.

Examples

Run this code
MatchingArguments(
  extra_args = list(Sigma = 1, test = FALSE),
  FUN = MASS::mvrnorm
)

Run the code above in your browser using DataLab