Learn R Programming

fb4package (version 2.0.0)

compare_with_redfield: Compare N:P ratios with Redfield ratios

Description

Compares calculated N:P ratios with the classical Redfield ratio. Useful for understanding deviations from typical oceanic proportions.

Usage

compare_with_redfield(np_ratios)

Value

A data.frame with one row per process and six columns:

Process (character), NP_Ratio (numeric),

Redfield_Ratio (numeric), Difference (numeric; observed minus Redfield), Relative_Difference (numeric; % deviation from Redfield), and Interpretation (character; one of "N-rich relative to P", "N-poor relative to P",

"No P available", or "No flux").

Arguments

np_ratios

List result from calculate_np_ratios

Examples

Run this code
nitrogen   <- list(consumed = 10, growth = 3, excretion = 5, egestion = 2)
phosphorus <- list(consumed = 1.5, growth = 0.5, excretion = 0.6, egestion = 0.4)
np  <- calculate_np_ratios(nitrogen, phosphorus)
compare_with_redfield(np)

Run the code above in your browser using DataLab