View source: R/split_chamber.R
split_chamber | R Documentation |
Function to automatically identify closing and opening times of chamber measurents
split_chamber(
data,
closing_lim = 30,
opening_lim = -10,
t_max = 3,
t_init = 0.1,
t_min = 2,
gas = "CO2",
round_intervall = "1 min",
adj_openings = T
)
data |
data.frame with gas concentrations of several chamber measurements |
closing_lim |
maximal concentration-gradient before closing the chamber |
opening_lim |
minimal concentration-gradient before opening the chamber |
t_max |
maximal measurement time (minutes), if time between closing and opening exceeds this time the rest of the measurement will not be included for the calculation of the flux |
t_init |
initial time (minutes) after closing of the chamber that will be excluded from the calculations |
t_min |
minimum timespan for each chamber measurement in minutes |
gas |
name of the gas as character |
round_intervall |
|
adj_openings |
logical; if |
input data.frame with colums messid (number of the measurement) and zeit (time in minutes after closing) added
test <- split.chamber(data,
closing_th = 40,
opening_th = -40,
t_max=Inf,
t_init=0,
t_min=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.