Clean and Analyze Continuous Glucose Monitor Data

This code provides several different functions for cleaning and analyzing continuous glucose monitor data. Currently it works with 'Dexcom' (<>), 'iPro 2' (<>), Diasend (<>), Libre (<>) or Carelink (<>) data. The cleandata() function takes a directory of CGM data files and prepares them for analysis. cgmvariables() iterates through a directory of cleaned CGM data files and produces a single spreadsheet with data for each file in either rows or columns. The column format of this spreadsheet is compatible with REDCap data upload ("--1" is added to each subject ID automatically for double data entry). cgmreport() also iterates through a directory of cleaned data, and produces PDFs of individual and aggregate AGP plots. Please visit <> to download the new-user guide.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


2.7 by Tim Vigers, 9 months ago

Browse source code at

Authors: Tim Vigers [aut, cre]

Documentation:   PDF Manual  

CC0 license

Imports ggplot2, lubridate, pracma, zoo, pastecs, tools, readxl, readr, XML

See at CRAN