Get a formula object for calling a TPC
Usage
get_tpc_as_formula(model_name, temp, trait, explicit = FALSE)
Arguments
- model_name
the name of the model being fitted
- temp
the name of the temperature column
- trait
the name of the trait column
- explicit
whether to return the formula constructed using the explicit form of the tpc function (e.g. rTPC::briere1_1999()
)
Value
A formula calling the expected TPC
Examples
get_tpc_as_formula("briere1_1999", "temperature", "rate")
#> rate ~ briere1_1999(temp = temperature, tmin, tmax, a)
#> <environment: 0x55e5182955f8>
# > rate ~ briere1_1999(temp = temperature, tmin, tmax, a)