removeSeeds: Remove not simulated seeds

View source: R/multSim_calculations.R

removeSeedsR Documentation

Remove not simulated seeds

Description

If a simulation via multSim has been interrupted, slot outputList of the returned multSim object contains NAs. Method removeSeeds removes these NA entries and changes all other slots accordingly. This method is used internally for other calculation methods as e.g. mean.

Usage

removeSeeds(ms)

Arguments

ms

object of class multSim

Value

object of class multSim that does not contain NAs in slot outputList

Examples

data(simplePdmp)
setTimeLimit(cpu = 2)
ms <- multSim(simplePdmp, seeds = 1:100)
removeSeeds(ms)

CharlotteJana/pdmpsim documentation built on Oct. 21, 2024, 4:54 p.m.