cumulative_evolution: Compute cumulative C evolved

Description Usage Arguments Details Value Examples

View source: R/fluxes.R

Description

Compute cumulative C evolved

Usage

1
cumulative_evolution(time, flux, interpolate = TRUE)

Arguments

time

Time, typically s or hr but arbitrary; numeric

flux

Flux, in units of X/unit time; numeric

interpolate

Interpolate missing values? Logical

Details

X evolved at timestep i is the lag between time[i] and time[i-1] multiplied by the mean of flux[i] and flux[i-1]. The first timestamp value is considered as time zero, so its corresponding cumulative value will always be zero.

Value

A vector of cumulative values of X evolved.

Examples

1
2
cumulative_evolution(1:4, c(1, 1, NA, 1))
cumulative_evolution(1:4, c(1, 1, 2, 1))

PNNL-TES/picarro.data documentation built on Nov. 14, 2019, 11:03 p.m.