Learn R Programming

mizer (version 1.0.1)

MizerSim: Constructor for the MizerSim class

Description

A constructor for the MizerSim class. This is used by the project method to create MizerSim objects of the right dimensions. It is not necessary for users to use this constructor.

Usage

MizerSim(object, ...)

# S4 method for MizerParams MizerSim(object, t_dimnames = NA, t_max = 100, t_save = 1)

Arguments

object

a '>MizerParams object

...

Other arguments (currently not used).

t_dimnames

Numeric vector that is used for the time dimensions of the slots. Default = NA.

t_max

The maximum time step of the simulation. Only used if t_dimnames = NA. Default value = 100.

t_save

How often should the results of the simulation be stored. Only used if t_dimnames = NA. Default value = 1.

Value

An object of type '>MizerSim

See Also

project '>MizerParams '>MizerSim

Examples

Run this code
# NOT RUN {
data(NS_species_params_gears)
data(inter)
params <- MizerParams(NS_species_params_gears, inter)
sim <- project(params)
# }

Run the code above in your browser using DataLab