Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

eval_simoutput

Evaluate input/output integrity


Description

Evaluate input/output integrity

Usage

eval_simoutput(nl)

Arguments

nl

nl object with attached simulation output

Details

This function checks if the attached simulation output in the simoutput slot of the simdesign, corresponds to the defined siminput matrix.

Warning messages are thrown if data is missing in the simoutput tibble. Additionally, missing combinations of siminputrow and random seed for which no data was found can be reported as tibble. Such a tibble can then be used directly to rerun missing combinations conveniently (see examples below)

Examples

## Not run: 
# Check eval_simoutput for testdata nl_lhs:
nl <- nl_lhs
eval_simoutput(nl)

# Now remove one row of simoutput and check output:
nl <- nl_lhs
nl@simdesign@simoutput <- nl@simdesign@simoutput[-1,]
check <- eval_simoutput(nl)
check

# Rerun missing combinations within check tibble:
rerun <- purrr::map_dfr(seq(nrow(check)), function(x) {
  res <- run_nl_one(nl, siminputrow=check$siminputrow[x], seed=check$seed[x])
    return(res)
    }) %>%
      dplyr::bind_rows(., nl@simdesign@simoutput)



## End(Not run)

nlrx

Setup, Run and Analyze 'NetLogo' Model Simulations from 'R' via 'XML'

v0.4.2
GPL-3
Authors
Jan Salecker [aut, cre] (<https://orcid.org/0000-0002-9000-4229>), Marco Sciaini [aut] (<https://orcid.org/0000-0002-3042-5435>), Marina Papadopoulou [rev] (Marina reviewed the package for ropensci, see <https://github.com/ropensci/software-review/issues/262>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.