View source: R/11.1-basic-validators.R
| validate_basic_params | R Documentation |
Validates fundamental model parameters for biological feasibility and computational practicality.
validate_basic_params(initial_weight, duration)
initial_weight |
Initial weight in grams |
duration |
Duration in days |
Checks that:
Initial weight is positive and numeric
Duration is positive and numeric
Duration is not excessively long (performance warning)
Invisibly returns TRUE if validation passes; throws an error otherwise.
isTRUE(validate_basic_params(10.5, 365))
try(validate_basic_params(-5, 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.