Learn R Programming

fb4package (version 2.0.0)

nutrient_efficiency_block: Compute efficiency metrics for a single nutrient

Description

Internal helper that calculates retention, excretion, and growth efficiencies from raw flux values. Used by calculate_nutrient_efficiencies() to avoid duplicating the identical calculation for nitrogen and phosphorus.

Usage

nutrient_efficiency_block(consumed, growth, excretion, assimilated)

Value

Named list: retention_efficiency, excretion_rate,

growth_efficiency.

Arguments

consumed

Total nutrient consumed (same units as other flux args).

growth

Nutrient retained in growth.

excretion

Nutrient lost via excretion.

assimilated

Nutrient assimilated (consumed minus egested).