Learn R Programming

fb4package (version 2.0.0)

validate_temporal_data: Validate temporal data

Description

Validates temporal data arrays for simulation readiness.

Usage

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

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).

Arguments

temperature

Temperature vector

diet_matrix

Diet proportion matrix

energy_matrix

Prey energy matrix

indigestible_matrix

Indigestible fraction matrix

reproduction_data

Reproduction vector