Subsets the columns of an experiment object that correspond to the values of the parameters.

parameters(exp)

# S3 method for default
parameters(exp)

# S3 method for experiment
parameters(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 = "rama"))
#> 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) parameters(exp2)
#> p_S0 p_I0 p_R0 p_beta p_gamma #> 1 999 1 0 1.5 0.15 #> 2 999 1 0 1.5 0.15 #> 3 999 1 0 1.5 0.15 #> 4 999 1 0 1.5 0.15 #> 5 999 1 0 1.5 0.15 #> 6 999 1 0 1.5 0.15 #> 7 999 1 0 1.5 0.15 #> 8 999 1 0 1.5 0.15 #> 9 999 1 0 1.5 0.15 #> 10 999 1 0 1.5 0.15