threeDotsCall {MetNet} | R Documentation

## Check if passed arguments match the function's formal arguments and call the function with the checked arguments

### Description

The function `threeDotsCall` gets the formal arguments of a function `fun` and checks if the passed arguments `...` matches the formal arguments. `threeDotsCall` will remove duplicated arguments. `threeDotsCall` will call the function `fun` with the filtered arguments and will return the result.

### Usage

    threeDotsCall(fun, ...)

### Arguments

`fun` | function to check for arguments and to call
`...` | arguments to be tested to be passed to fun

### Details

Used internally in `lasso`, `randomForest`, `correlation`, `bayes`, `consensusAdjacency`

### Value

Function call with passed arguments

### Author(s)

Thomas Naake, thomasnaake@googlemail.com

### Examples

    MetNet:::threeDotsCall(stats::sd, x=1:10, y=1:10)
    ## in contrast to the above example, the following example will result in an
    ## error
    ## Not run: stats::sd(x=1:10, y=1:10)

[Package MetNet version 1.2.0 Index]