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

Description Usage Arguments Value

View source: R/extra.R

Description

return a dataframe of the Glucose values for a timeLength following foodname appearing in notes_records. This function calls the database directly and is intended to work standalone, without other functions.

Usage

1
2
3
4
5
6
7
8
food_times_df_fast(
  glucose_df,
  notes_df,
  user_id = NULL,
  timeLength = 120,
  prefixLength = 0,
  foodname = "watermelon"
)

Arguments

glucose_df

a valid glucose dataframe

notes_df

a valid notes dataframe

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.

foodname

character string representing the food item of interest

Value

dataframe


personalscience/psi-shiny-cgm documentation built on Dec. 22, 2021, 7:43 a.m.