TIR: Compute Time Inside Range

Description Usage Arguments Value Examples

View source: R/TIR.R

Description

This function computes the time inside range (range in standard deviations from mean, default = 1).

Usage

1
TIR(df, sd = 1, sr = 5)

Arguments

df

Data frame read through readfile

sd

Standard deviation indicating glycemic excursions, default = 1

sr

Sampling rate inverse in minutes of the CGM (default is the Dexcom -> 5 minutes)

Value

A numeric value representing TIR

Examples

1
2
3
mydatafile <- system.file("extdata", "my_data_file.csv", package = "cgmquantify")
mydata <- readfile(mydatafile)
TIR(mydata, sd = 1, sr = 5)

cgmquantify documentation built on Feb. 5, 2021, 9:06 a.m.