food_times_df: Glucose values after eating a specific food (local memory...

View source: R/food_times_calc.R

food_times_dfR Documentation

Glucose values after eating a specific food (local memory version)

Description

Same results as food_times_df(). Return a dataframe of the Glucose values for a timeLength following foodname appearing in notes_records. Returned in the format t, value, username, date-ch, timestamp, meal, foodname, user_id

Usage

food_times_df(
  cgm_data,
  user_id = NULL,
  timeLength = 120,
  prefixLength = 0,
  foodnames = list("watermelon")
)

Arguments

cgm_data

CGM data object

user_id

user ID. If NULL then assume all users

timeLength

number of minutes for the glucose record to show after the food was eaten.

prefixLength

number of additional minutes to add before the starttime.

foodnames

list of character strings representing the food items of interest

Value

dataframe


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