Low-level constructor for a single continuous glucose monitoring trace.
Arguments
- time
POSIXct vector of timestamps.
- glucose
Numeric vector of glucose values (mg/dL), same length as
time.- diabetic
Logical, whether the participant has diabetes. Controls downstream baseline tolerance and cap behaviour (see
correct_baseline()).