Learn R Programming

rGV (version 0.0.5)

tir: Calculate time in range (TIR)

Description

Calculate time in range (TIR)

Usage

tir(x, low = 70, high = 180)

Value

The numeric time in range value for a given dataset of glucose measurements and times.

Arguments

x

vector of glucose readings

low

lower bound of the range. Default is 70

high

upper bound of the range. Default is 180

Examples

Run this code
tir(x=c(rep(100, 10), rep(120, 10), 105, 85), low=70, high=80)

Run the code above in your browser using DataLab