add_alpha {trps} | R Documentation |
Calculate and add \alpha
Description
Calculate \alpha
for a two source trophic position model using
equations from Post 2002.
Usage
add_alpha(data, abs = FALSE)
Arguments
data |
|
abs |
logical that controls whether the absolute value is taken for the
numerator and denominator. Default is |
Details
\alpha = (\delta^{13}C_c - \delta ^{13}C_2) /
(\delta ^{13}C_1 - \delta ^{13}C_2)
where \delta^{13}C_c
is the isotopic value for consumer,
\delta^{13}C_1
is the mean isotopic value for baseline 1 and
\delta^{13}C_2
is the mean isotopic value for baseline 2.
Value
a data.frame
that has alpha
, min_alpha
, and max_alpha
added.
Examples
combined_iso |>
add_alpha()