food_with_intervention | R Documentation |
This function adds a new logical column to a tibble, named "control". The value in this column will be TRUE if the specified intervention string is found within the 'meal' column of the data frame, and FALSE otherwise. The string detection is case-insensitive.
food_with_intervention(df, intervention = "glucotrojan")
df |
A data frame (or tibble) to which the 'control' column will be added. |
intervention |
A string to be searched for within the 'meal' column of the input data frame. Defaults to "glycotrojan". |
A tibble that is the same as the input tibble, but with an added 'control' column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.