food_by_meal | R Documentation |
This function takes a food results dataframe and processes it by grouping it by meal, arranging it by time ('t'), and adjusting the 'value' column to start from zero for each meal. The resulting dataframe is arranged by 'meal'.
food_by_meal(foodresults = NULL)
foodresults |
A dataframe of food results. It should contain at least the
following three columns: 't' (numeric, representing time), 'value' (numeric, representing
the value associated with each time point), and 'meal' (character, representing the meal
associated with each time point). Typically, |
A dataframe of the processed food results, arranged by 'meal'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.