Skip to contents

Low-level constructor for a single continuous glucose monitoring trace.

Usage

glucose_trace(time, glucose, diabetic = FALSE)

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()).

Value

An object of class sugaR_trace.