file: File persistence of simulations

Description Usage Arguments Details

Description

Functions to save and load simulated data from the disk

Usage

1
2
3
GillesComToFile(file = "GillesCom.rda")

GillesComFromFile(file = "GillesCom.rda")

Arguments

file

filename to which save / from which load the data

Details

The function GillesComToFile saves all of the relevant data about a simulated community to a file, including the random number generator seed. This allows for retaking the simulation later or even in other computers with reproducible results.

The function GillesComFromFile loads all of the relevant data about a simulated community from a file. It returns the saved random number generator seed as an invisible vector, so if you want to continue the simulation with the saved key, use ".Random.seed <- GillesComFromFile()".


piLaboratory/GillesCom documentation built on May 25, 2019, 6:04 a.m.