loadEvals: Load evaluation files and compile into a single data frame

View source: R/loadEvals.r

loadEvalsR Documentation

Load evaluation files and compile into a single data frame

Description

This is a helper function that loads multiple evaluation files and compiles them into a single data frame. The data frame is then sorted by the order of the algorithms in the argument algo.

Usage

loadEvals(
  evalDir,
  algos = c("omniscient", "bioclim", "brt", "gam", "glm", "maxent", "rf"),
  save = TRUE,
  redo = FALSE,
  verbose = TRUE
)

Arguments

evalDir

Character, name of the scenario directory containing evaluation files.

algos

Character, name of algorithm(s) for which to collate evaluation files. Examples: c('omniscient', 'brt', 'gam', 'maxent'). Algorithms will appear in this order in the data frame output.

save

Logical, if TRUE then save collated data frame in the evaluation folder. The name of the file will be "!Collated Evaluations.RData".

redo

Logical, if TRUE and a file named "!Collated Evaluations.RData" is already in the evaluations folder, then this function will load that file instead of re-collating individual evaluation files. If FALSE, then re-collate evaluation files.

verbose

Logical, if TRUE then display progress.

Value

Data frame.


adamlilith/enmSdmPredImport documentation built on Dec. 31, 2022, 5:40 p.m.