View source: R/11.3-data-validators.R
| validate_individual_data | R Documentation |
Validates individual fish data for hierarchical mark-recapture models.
validate_individual_data(
individual_data,
require_positive_growth = TRUE,
check_outliers = TRUE
)
individual_data |
Data frame with individual observations |
require_positive_growth |
Whether growth must be positive |
check_outliers |
Whether to check for outliers |
Invisibly returns TRUE if all checks pass. Throws an error
if individual_data is not a data frame, if required columns
(individual_id, initial_weight, final_weight) are
missing, if weights are non-positive, or if growth is negative when
require_positive_growth = TRUE. Issues warnings for outlier
observations when check_outliers = TRUE.
ind <- data.frame(individual_id = c("A", "B"),
initial_weight = c(50, 80),
final_weight = c(120, 180))
isTRUE(validate_individual_data(ind))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.