time_on: Calculate amount of time that the CGM was active

View source: R/metrics.R

time_onR Documentation

Calculate amount of time that the CGM was active

Description

Calculate amount of time that the CGM was active

Usage

time_on(times, gap = 5)

Arguments

times

vector of corresponding times, in minutes

gap

typical gap between CGM measurements, in minutes. Default is 5

Value

The numeric amount of time that the CGM device was active in a given dataset.

Examples

time_on(times=seq(0, 1260, 60), gap=5)

rGV documentation built on April 4, 2025, 5:58 a.m.

Related to time_on in rGV...