injectionrate: Function to calculate Injectionrate for specific...

View source: R/injectionrate.R

injectionrateR Documentation

Function to calculate Injectionrate for specific Diffusionchamber measurement

Description

Function to calculate Injectionrate for specific Diffusionchamber measurement

Usage

injectionrate(
  datelim,
  Pumpstufen,
  group = "Pumpstufe",
  closing_lim = 100,
  opening_lim = 0,
  t_max = 6,
  t_init = 1,
  t_min = 2,
  T_C = NA,
  spikes_th = 500,
  difftime_th = 10,
  all_spikes_NA = F,
  data = NULL,
  return_data = F,
  colname = "CO2",
  adj_openings = T,
  ...
)

Arguments

datelim

time intervall

Pumpstufen

verwendete Pumpstufen bei den unterschiedlichen Versuchen

group

name of the column that should be used for grouping results

T_C

either a numeric value for one Temperature or the name of the Temperture column as character

return_data

if T then the function returns a list with the flux as first element and the processed input data as second element

colname

name of the CO2 column in the df

...

#other parameters parsed to calc_flux

Examples

split <- injectionrate(datelim = datelim,Pumpstufen = c(1:5,5,rep(NA,4),1:4,1:5),group="Pumpstufe",
closing_before = 20,
closing_after = 20,
opening_before = 0,
opening_after = 10,
t_max=6,
t_init = 1,
t_min=3)

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