Description Usage Arguments Value Examples
View source: R/get_nutrient_id.R
Provides an easy way to access nutrient ids as provided by the USDA.
1 | get_nutrient_id(nutrient_name, df)
|
nutrient_name |
Name of the nutrient for which an id is returned. |
df |
The data set that contains nutrient ids. Can be loaded into the environment by calling 'data("nutrient_ids")'. If no data set is provided, the default is to use 'nutrient_ids'. |
Returns the nutrient id.
1 2 | data("nutrient_ids")
get_nutrient_id("myri",nutrient_ids)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.