Subsets the columns of an experiment object that correspond to the obs_rates rates of the monitored variables.

obs_rates(exp)

# S3 method for default
obs_rates(exp)

# S3 method for experiment
obs_rates(exp)

Arguments

exp

An object of class experiment.

Value

A data frame that is a subset of the inputed experiment object.

Examples

exp1 <- load_experiment("sir", system.file("models", "sir.gaml", package = "gamar"))
#> Loading experiment "sir" from file "sir.gaml"...
#>
#> Periods of observation ("obsrates") are converted into integers.
#>
#> Final time step ("tmax") is converted into integer.
#>
#> Seed is converted into numeric.
#>
#> Parameters' types are cast according to model definition
#>
exp2 <- repl(exp1, 10) obs_rates(exp2)
#> r_S r_I r_R #> 1 1 1 1 #> 2 1 1 1 #> 3 1 1 1 #> 4 1 1 1 #> 5 1 1 1 #> 6 1 1 1 #> 7 1 1 1 #> 8 1 1 1 #> 9 1 1 1 #> 10 1 1 1