split_chamber: Function to automatically identify closing and opening times...

View source: R/split_chamber.R

split_chamberR Documentation

Function to automatically identify closing and opening times of chamber measurents

Description

Function to automatically identify closing and opening times of chamber measurents

Usage

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
)

Arguments

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 TRUE opening times will be adjusted to never be smaller than closing times

Value

input data.frame with colums messid (number of the measurement) and zeit (time in minutes after closing) added

Examples

test <- split.chamber(data,
closing_th = 40,
opening_th = -40,
t_max=Inf,
t_init=0,
t_min=5)

laurin-f/pkg.WWM documentation built on July 19, 2023, 12:04 a.m.