loadResults: Loads result files for id vector.

View source: R/loadResults.R

loadResultsR Documentation

Loads result files for id vector.

Description

Loads result files for id vector.

Usage

loadResults(
  reg,
  ids,
  part = NA_character_,
  simplify = FALSE,
  use.names = "ids",
  missing.ok = FALSE,
  impute.val = NULL
)

Arguments

reg

[Registry]
Registry.

ids

[integer]
Ids of jobs. Default is all done jobs.

part

[character] Only useful for multiple result files, then defines which result file part(s) should be loaded. NA means all parts are loaded, which is the default.

simplify

[logical(1)]
Should the result be simplified to a vector, matrix or higher dimensional array if possible? Default is TRUE.

use.names

[character(1)]
Name the results with job ids (“ids”), stored job names (“names”) or return a unnamed result (“none”). Default is ids.

missing.ok

[logical(1)]
If FALSE an error is thrown if the results are not found. Otherwise missing results are imputed to NULL. Default is FALSE.

impute.val

[any]
The value to return when no result is available. Defaults to NULL (the previous behavior)

Value

[list]. Results of jobs as list, possibly named by ids.

See Also

reduceResults


BatchJobs documentation built on March 21, 2022, 5:05 p.m.