Baseline is taken as first non-missing co2 value. Peak is taken as largest co2 value

process_primary(co2_long)

Arguments

co2_data

dataframe of data from tcco2 monitor

trial_data

dataframe of other variables