nutrisense_results: read a Nutrisense export file and return its username and PSI...

View source: R/nutrisense_read.R

nutrisense_resultsR Documentation

read a Nutrisense export file and return its username and PSI glucose format

Description

Nutrisense export files contain timestamped information about glucose values, meals, exercise, sleep, and more. This function is like glucose_df_from_nutrisense() except it also returns the name of the user. 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

nutrisense_results(
  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 list (username, glucose_df)


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