Skip to contents

fits a quadratic model to the gas concentration over time

Usage

flux_fitting_quadratic(
  conc_df_cut,
  conc_df,
  conc_col,
  f_start,
  f_fluxid,
  start_cut,
  t_zero
)

Arguments

conc_df_cut

dataframe of gas concentration over time, cut

conc_df

dataframe of gas concentration over time

conc_col

column with gas concentration

f_start

column with datetime when the measurement started

f_fluxid

column with ID of each flux

start_cut

time to discard at the start of the measurements (in seconds)

t_zero

time at which the slope should be calculated

Value

a df with the modeled gas concentration, slope, intercept, std error, r square and p value of the quadratic model