TomCodd / Nutrition_Functions

A collection of nutrition-related or nutrition-inspired functions written to help with the processing of Nutritional Data
0 stars 1 forks source link

[Request] - New Function: Hierarchical matching #3

Open LuciaSegovia opened 1 year ago

LuciaSegovia commented 1 year ago


Rationale: Food matching for HCES is done manually using R scripts. See code:

Objective: Generate a function that matches every food item in a given food list (i.e., food consumed by a household) and for every nutrient/ component of interest following a pre-defined hierarchical list of food composition data sources.

User inputs:

  1. Food list with dicitonary codes (to be matched)
  2. List of nutrients/ components to be filled
  3. Food composition data to be used
  4. Food composition data hierarchy

Output:

Dataframe (exportable to csv, excel, etc) with the food list and the relevant nutrient/ component values and the correspoding metadata/ documentation. For instance, the source of the values per food and nutrient/ component, by providing the food item(s) code and the FCT id (e.g., KE18(1002).

TomCodd commented 1 year ago

Hi Lucia!

I was wondering if you could point me in the direction of a single file example for input numbers 1 and 3? I can build the tool around them :)

Many thanks

Tom

LuciaSegovia commented 1 year ago

Sorry @TomCodd for missing this, do you still need the data inputs?