custom header test

Reproduce a result

Usage

reproduce_model(model)

Arguments

model
the model result you would like to reproduce

Description

Helps reproduce the result of a simulation by restoring the RNG to the state of a given null model object

Details

Works by resetting the RNG state to what it was for a given EcoSimR simulation. This only works if you saved the seed with the saveSeed parameter

Examples

## <strong>Not run</strong>: # finchMod <- cooc_null_model(dataWiFinches, algo="sim1",saveSeed=T) # ## Check model output # mean(finchMod$Sim) # # reproduce_model(finchMod$Sim) # # finchMod <- cooc_null_model(dataWiFinches, algo="sim1") # ## Check model output is the same as before # mean(finchMod$Sim) # reproduce_model(finchMod$Sim) # ## <strong>End(Not run)</strong>