Package 'reval'

Title: Argument Table Generation for Sensitivity Analysis
Description: Simplified scenario testing and sensitivity analysis, redesigned to use packages 'future' and 'furrr'. Provides functions for generating function argument sets using one-factor-at-a-time (OFAT) and (sampled) permutations.
Authors: Michael C Koohafkan [aut, cre]
Maintainer: Michael C Koohafkan <[email protected]>
License: GPL (>= 3)
Version: 3.1-0
Built: 2025-01-01 04:05:53 UTC
Source: https://github.com/mkoohafkan/reval

Help Index


Repeated Function Evaluation For Sensitivity Analysis

Description

This package provides functions to generate argument tables for scenario testing and sensitivity analysis with R.


One Factor At a Time Argument Set

Description

Generate an argument table based on OFAT.

Usage

args_ofat(...)

Arguments

...

Named arguments to a function.

Value

A tibble of argument combinations.

Examples

args_ofat(x = 1:5, y = 1:3)
args_ofat(x = 1:3, y = 1:3, z = 1:3)

Permutation Argument Set

Description

Generate an argument table based on permutations.

Usage

args_permute(..., .n)

Arguments

...

Named arguments to a function.

.n

the number of argument permutations to evaluate (sampling without replacement). If missing, all possible permutations are returned.

Value

A tibble of argument combinations.

Examples

args_permute(x = 1:5, y = 1:2)
args_permute(x = 1:10, y = 1:10, z = 1:10, .n = 10)

Argument Set

Description

Generate an argument table from a set of arguments, following the standard rules for vector recycling in R.

Usage

args_set(...)

Arguments

...

Named arguments to a function.

Value

A tibble of argument combinations.

Examples

args_set(x = 1:10, y = 1:10)
args_set(x = 1:10, y = 1:5, z = 1:2)
# mismatched argument lengths will generate a warning
## Not run: 
args_set(x = 1:10, y = 1:3)

## End(Not run)