Produces an object suitable to pass as the params to spec_rescomp.

rescomp_param_list(...)

Arguments

...

Named arguments used to create the params list.

Value

S3 object of class rescomp_param_list.

Details

Must be given zero or more named arguments, which are used to build the params list. rescomp_param objects are parsed to allow time dependence, while other objects are passed into the list directly.

Examples

params <- rescomp_param_list(
  r = 0.2,
  s = c(3, 4),
  conc = rescomp_param_custom(function(t) {
    t^2
  })
)
get_params(params, 0.5)
#> $r
#> [1] 0.2
#> 
#> $s
#> [1] 3 4
#> 
#> $conc
#> [1] 0.25
#> 
get_params(params, 2)
#> $r
#> [1] 0.2
#> 
#> $s
#> [1] 3 4
#> 
#> $conc
#> [1] 4
#>