Example Non-Gram Foods Conversion Data
Source:R/non_gram_foods_data_doc.R
non_gram_foods_conversion.RdThis dataset is included for testing and demonstration purposes.
It provides mappings between units (e.g., cups, spoons) and their
equivalent weights in grams. It is used internally by
compute_actual_g_intake during testing to validate workflows.
Usage
data(non_gram_foods_conversion)Format
A tibble with the following columns:
- subcounty
Subcounty name (character)
- food_item
Food item description (character)
- unit
Original unit of measure (character, not grams)
- amount
Reference amount in the specified unit (numeric)
- gram
Equivalent gram weight for the reference amount (numeric)
Details
A lightweight example dataset that replicates the structure of the
non-gram foods conversion sheet produced by
get_non_gram_foods and completed by the user.
Examples
data("non_gram_foods_conversion")
head(non_gram_foods_conversion)
#> # A tibble: 6 × 5
#> subcounty food_item unit amount gram
#> <chr> <chr> <chr> <dbl> <dbl>
#> 1 MAKADARA Orange (chungwa), pulp, raw Pric… 1 50
#> 2 MAKADARA Githeri (Stewed Maize & Beans) mls 1 100
#> 3 MAKADARA Beans, kidney, dry, water-soaked, boiled in diff… mls 1 100
#> 4 MAKADARA Black Bean Stew mls 1 100
#> 5 MAKADARA White Chapati Pric… 1 200
#> 6 MAKADARA Chai ya Maziwa (Mixed Tea) mls 1 200