normalize_time: Normalize time column
Description
Normalizes the the time column such that the baseline phase has negative time values. Point zero will then represent the start of the transition phase.
Usage
normalize_time(.data, protocol_baseline_length)
Arguments
- .data
Breath-by-breath data.
- protocol_baseline_length
The length of the baseline (in seconds).