glucose_df_from_levels: read a Levels export file and convert to the PSI CGM format

View source: R/nutrisense_read.R

glucose_df_from_levelsR Documentation

read a Levels export file and convert to the PSI CGM format

Description

Levels export files contain timestamped information about glucose values, meals, exercise, sleep, and more. Important: This function expects an extra line at the top of the Nutrisense raw file. The first line must say "Levels" and include the full name of the person.

Usage

glucose_df_from_levels(
  filepath = system.file("extdata", package = "cgmr", "Firstname4Lastname4_levels.csv"),
  user_id = 3000,
  tz = "UTC"
)

Arguments

filepath

path to a valid Levels CSV data file

user_id

new user ID to be appended to the dataframe

tz

time zone

Value

a canonical glucose value dataframe


personalscience/cgmr documentation built on July 2, 2023, 12:47 a.m.