diffFlagsStepwise: Diff Flags Stepwise

View source: R/flagTools.r

diffFlagsStepwiseR Documentation

Diff Flags Stepwise

Description

Show differences in flag settings between stepwise model runs.

Usage

diffFlagsStepwise(
  stepdir,
  models = dir(stepdir, full.names = TRUE),
  labels = basename(models),
  quiet = FALSE,
  ...
)

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.

quiet

whether to suppress the on-screen reporting of reading files.

...

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 list of data frames showing differences in flag settings between stepwise model runs.

See Also

diffFlags shows differences in flag settings between two model runs.

read.MFCLFlags reads flag settings from a ⁠par⁠ file.

Examples

## Not run: 
yft_dir <- "//penguin//assessments/yft/2020_review/analysis/stepwise"
yft_diffs <- diffFlagsStepwise(yft_dir)
lapply(yft_diffs, nrow)  # show number of flags changed in each step
lapply(yft_diffs, head)  # peek at the first 6 flags changes in each step

# 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 <- diffFlagsStepwise(bet_dir, bet_models, bet_labels)
lapply(bet_diffs, nrow)
lapply(bet_diffs, head)

## End(Not run)


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