powered by
Calculate amount of time that the CGM was active
time_on(times, gap = 5)
The numeric amount of time that the CGM device was active in a given dataset.
vector of corresponding times, in minutes
typical gap between CGM measurements, in minutes. Default is 5
time_on(times=seq(0, 1260, 60), gap=5)
Run the code above in your browser using DataLab