glucose_df_from_nutrisense: read a Nutrisense export file and convert to the PSI CGM...

View source: R/nutrisense_read.R

glucose_df_from_nutrisenseR Documentation

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

Description

Nutrisense 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 "Nutrisense" and include the full name of the person.

Usage

glucose_df_from_nutrisense(
  filepath = system.file("extdata", package = "cgmr",
    "Firstname3Lastname3_nutrisense.csv"),
  user_id = 2000,
  tz = "UTC"
)

Arguments

filepath

path to a valid Nutrisense 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.