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

Description Usage Arguments Value

View source: R/nutrisense_read.R

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

1
2
3
4
5
6
glucose_df_from_nutrisense(
  filepath = file.path(config::get("tastermonial")$datadir,
    "1627653419114_export-SherriJo.csv"),
  user_id = 1005,
  tz = Sys.timezone()
)

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/psi-shiny-cgm documentation built on Dec. 22, 2021, 7:43 a.m.