validate_temporal_data: Validate temporal data

View source: R/11.3-data-validators.R

validate_temporal_dataR Documentation

Validate temporal data

Description

Validates temporal data arrays for simulation readiness.

Usage

validate_temporal_data(
  temperature,
  diet_matrix,
  energy_matrix,
  indigestible_matrix,
  reproduction_data
)

Arguments

temperature

Temperature vector

diet_matrix

Diet proportion matrix

energy_matrix

Prey energy matrix

indigestible_matrix

Indigestible fraction matrix

reproduction_data

Reproduction vector

Value

Invisibly returns TRUE if all temporal data pass validation. Throws an error with a descriptive message if any input contains invalid values (e.g. non-finite temperatures, diet proportions outside [0,1], non-positive prey energies, or indigestible/reproduction fractions outside [0,1]). May also emit warnings for values that are technically valid but biologically unusual (e.g. extreme temperatures or very high annual reproductive investment).


fb4package documentation built on May 8, 2026, 1:07 a.m.