multSimData: Create data.frame with simulations

Description Usage Arguments Value Examples

Description

This method transforms objects of class multSim or multSimCsv into a specific data.frame of class multSimData. Most plot method of package pdmpsim are based on this class. The data.frame has five columns:

Methods that use objects of class multSimData as input are plot, plotSeeds, plotTimes, plotStats, hist and density.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
getMultSimData(x, times, seeds)

getMultSimData.multSim(x, times, seeds)

getMultSimData.multSimCsv(x, times, seeds)

getMultSimData.multSimData(x, times, seeds)

## S4 method for signature 'pdmpModel'
getMultSimData(x, times, seeds)

Arguments

x

an object of class multSim, multSimCsv, multSimData or pdmpModel

times

vector with specific time values for which the simulation results (for all seeds) shall appear in the data.frame

seeds

vector with specific seeds for which the simulation results (for all times) shall appear in the data.frame

Value

a data.frame of class multSimData with simulation results.

Examples

1
2
3
4
data("toggleSwitch")
ms <- multSim(toggleSwitch, seeds = 1:5)
d <- getMultSimData(ms, seeds = 1:3, times = c(5, 10))
print(d)

CharlotteJana/pdmpsim documentation built on July 2, 2019, 5:37 a.m.