diffIniStepwise: Diff Ini Stepwise

View source: R/iniTools.R

diffIniStepwiseR Documentation

Diff Ini Stepwise

Description

Show differences in the ⁠ini⁠ file between stepwise model runs.

Usage

diffIniStepwise(
  stepdir,
  models = dir(stepdir, full.names = TRUE),
  labels = basename(models),
  ...
)

Arguments

stepdir

directory containing model runs in subdirectories.

models

optional vector of directory names to manually specify stepwise models to compare.

labels

optional vector of short labels to describe the stepwise models.

...

passed to diffFlags.

Details

Generally, the user only needs to specify stepdir. If this top directory contains stepwise model runs as subdirectories, then the default values of models and labels will infer the correct paths and model names.

If the stepwise model runs are not organized in a straightforward way, the models and labels arguments can be passed explicitly.

Value

A data frame showing the differences in the ⁠ini⁠ file between stepwise model runs.

See Also

summary_ini summarizes the contents of an ⁠ini⁠ file.

read.MFCLIni reads an ⁠ini⁠ file.

Examples

## Not run: 
yft_dir <- "//penguin/assessments/yft/2020_review/analysis/stepwise"
yft_diffs <- diffIniStepwise(yft_dir)
yft_diffs

# Unusual directory structure of BET 2020 stepwise models
bet_dir <- "//penguin/assessments/bet/2020/2020_stepwise"
bet_models <- file.path(dir(bet_dir, full.names=TRUE), "10N")
bet_labels <- dir(bet_dir)
bet_diffs <- diffIniStepwise(bet_dir, bet_models, bet_labels)
bet_diffs

## End(Not run)


robscott3/FLR4MFCL documentation built on April 9, 2024, 3:31 p.m.