nutrient_efficiency_block: Compute efficiency metrics for a single nutrient

View source: R/15.2-analysis-nutritional.R

nutrient_efficiency_blockR Documentation

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)

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

Value

Named list: retention_efficiency, excretion_rate, growth_efficiency.


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