flux_gpp | R Documentation |
to calculate gross primary production (GPP) from net ecosystem (NEE) exchange and ecosystem respiration (ER) as GPP = NEE - ER. Datetime and other variables to keep will be taken from the NEE measurement. Fluxes presents in the dataset that are neither NEE nor ER (soilR, LRC or other) are not lost.
flux_gpp(
fluxes_df,
type_col,
f_datetime,
f_flux = f_flux,
id_cols,
nee_arg = "NEE",
er_arg = "ER",
cols_keep = "none"
)
fluxes_df |
a dataframe containing NEE and ER |
type_col |
column containing type of flux (NEE or ER) |
f_datetime |
column containing start of measurement as datetime |
f_flux |
column containing flux values |
id_cols |
columns used to identify each pair of ER and NEE |
nee_arg |
argument designating NEE fluxes in type column |
er_arg |
argument designating ER fluxes in type column |
cols_keep |
columns to keep from |
a dataframe with $GPP = NEE - ER$ in long format with GPP, NEE, and
ER as flux type, datetime, and any column specified in cols_keep
.
Values of datetime and columns in cols_keep
for GPP row are taken from
NEE measurements.
data(co2_fluxes)
flux_gpp(co2_fluxes, type, f_start, id_cols = "turfID",
cols_keep = c("temp_soil"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.