This function is designed to be run on a data frame after other functions from the NutritionTools package have been run on it. This function scans the comments column for the preset comments left by other functions from the package, and produces a summary of them, and how often they appear.
Arguments
- df
Required - the data.frame which contains the food items that have been changed by functions from NutritionTools.
- comment_col
Required - default:
'comments'
- The name of the column withindf
that contains comments.- detailed
Required - default:
FALSE
-TRUE
orFALSE
. If set toTRUE
, then the Change Summary will examine the exact comments as they appear in the data frame. If set toFALSE
, as it is by default, comments which have unique identifiers (values, imputation IDs etc) have those aspects removed, to reduce the number of return types.