auc_for_food: Find glucose response for all meals involving a food

View source: R/calc_util.R

auc_for_foodR Documentation

Find glucose response for all meals involving a food

Description

This is a wrapper to food_times_df(). Given a foodname, returns a dataframe with every occurence of that food, with a timeLength minutes since eating.

Usage

auc_for_food(
  foodname = "Munk Pack",
  cgm_data,
  prefixLength = 0,
  timeLength = 150,
  start_limit = 100
)

Arguments

foodname

character string representing the food item of interest

cgm_data

CGM object

prefixLength

number of additional minutes to add before the starttime.

timeLength

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

start_limit

filter to cut off any results that have more than this mg/mL when starting

Value

dataframe


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