Skip to contents

Read a whole history: one run of Strong4VM per version of a model.

Usage

vp_read_history(prefixes, versions = NULL, ...)

Arguments

prefixes

The prefixes of the runs, oldest first.

versions

Names for the versions (by default, the names of the runs). Keep them in order: the functions of evolution.R compare each version with the one before it.

...

Passed to vp_read(), e.g. artificial = "drop".

Value

A tibble with one row per version: version (a factor that keeps the order) and model (a list column).

Examples

gens <- c("miband1", "miband2", "miband3")
prefixes <- vapply(
  vp_example(paste0(gens, "_realized.uvl")),
  vp_generate,
  "",
  read = FALSE
)
vp_read_history(prefixes, versions = gens)
#> # A tibble: 3 × 2
#>   version model       
#>   <fct>   <named list>
#> 1 miband1 <vp_model>  
#> 2 miband2 <vp_model>  
#> 3 miband3 <vp_model>