evalPar: Evaluate parameters in one goal in the global environment

View source: R/evalPar.R

evalParR Documentation

Evaluate parameters in one goal in the global environment

Description

Return a list of of parameters that changed, and change the corresponding value in the global environment.

Usage

evalPar(..., .prm = NULL, envir = parent.frame(), returnValue = TRUE)

Arguments

...

these arguments are of the form tag = value.

.prm

named list of arguments to use

envir

the environment in where parameters are to be evaluated.

Value

Returns a list of parameters that have been changed.

Examples

{
## Not run: 
evalPar(a = list(x = c(1,2,5), y = 3:5),
c = NULL, e = numeric())

# use .prm argument
tmp = list(a = list(x = c(1,2,5), y = 3:5))
evalPar(.prm = list(prm0 = tmp, a = 1, c = NULL,
e = numeric(), e2 = 1:3))

## End(Not run)}


paodan/funcTools documentation built on April 1, 2024, 12:01 a.m.