ffi_compute_fluxes | R Documentation |
Compute fluxes for multiple groups (measurements)
ffi_compute_fluxes(
data,
group_column,
time_column,
gas_column,
dead_band = 0,
normalize_time = TRUE,
fit_function = ffi_fit_models,
...
)
data |
A |
group_column |
Name of the grouping column in |
time_column |
Name of the time column in |
gas_column |
Name of the gas (concentration or quantity) column in
|
dead_band |
Length of the dead band in seconds (numeric), the equilibration
period whose data is dropped. This can be either a single number OR the name of the
dead band column in |
normalize_time |
Normalize the values so that first is zero? Logical |
fit_function |
Optional flux-fit function;
default is |
... |
Other parameters passed to |
A data.frame with one row per group_column
value. It will
always include the mean, minimum, and maximum values of time_column
for that group, but other
columns depend on what is returned by the fit_function
.
ffi_fit_models
# No grouping
ffi_compute_fluxes(cars, group_column = NULL, "speed", "dist")
# With grouping
cars$Plot <- c("A", "B")
ffi_compute_fluxes(cars, "Plot", "speed", "dist")
# See the introductory vignette for a fully-worked example with real data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.