nutrient_source: Nutrient sources

Description Usage Format Examples

Description

This file (Table 14) is used resolve the many-to-many link between nutrients with references.

Usage

1

Format

A data frame with 213653 observations and 3 variables:

food_id

Food identifier. Joins with nutrient

nutr_id

Nutrient identifer. Joins with nutrient

ref_id

Reference identifer. Joins with reference

Examples

1
2
3
4
5
6
7
8
9
nutrient_source

if (require("dplyr")) {
  # Connect nutrients to references
  nutrient_source %>%
    inner_join(nutrient_def %>% select(nutr_id, nutr)) %>%
    inner_join(food %>% select(food_id, food)) %>%
    inner_join(reference)
}

hadley/usdanutrients documentation built on May 17, 2019, 1:31 p.m.