get_iglu_format: Convert CGM data to a format compatible with the R-package...

View source: R/06_conversions.R

get_iglu_formatR Documentation

Convert CGM data to a format compatible with the R-package iglu

Description

Convert CGM data to a format compatible with the R-package iglu

Usage

get_iglu_format(data)

Arguments

data

A list with all data found for one individual (the output of parse_data) or for multiple individuals (the output of merge_all). Requires cleaned and standardized CGM data.

Value

A data frame with columns id, time and gl, compatible with the R-package iglu.

Examples

path <- system.file("extdata", "dexcom_clarity_example.csv", package = "aidR")
data <- parse_data(id = "1", paths = path)
iglu_df <- get_iglu_format(data)
iglu::plot_glu(iglu_df)

aidR documentation built on Oct. 28, 2026, 5:13 p.m.