Learn R Programming

rGV (version 0.0.5)

time_on: 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)

Value

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

Arguments

times

vector of corresponding times, in minutes

gap

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

Examples

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

Run the code above in your browser using DataLab