j_index: Calculate J-index

View source: R/metrics.R

j_indexR Documentation

Calculate J-index

Description

Calculate J-index

Usage

j_index(x, unit = "mg")

Arguments

x

vector of glucose readings

unit

"mg" if the units are mg/dL or "mmol" if the units are mmol/L. Null value is "mg".

Value

The numeric J-index value for a given dataset of glucose measurements.

Examples

j_index(x=c(rep(100, 10), rep(120, 10), 105, 85), unit='mg')

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

Related to j_index in rGV...