search_ingredient: Searches the data

Description Usage Arguments Value Examples

Description

The function takes one or more comma-separated search terms and looks for matches in the ABBREV data set.

Usage

1
search_ingredient(ingredient)

Arguments

ingredient

is a string of one or more comma-separated terms

Value

a vector of possible matches

Examples

1
2
3
4
5
library(NutrientData)

search_ingredient("onion")

search_ingredient("onion,raw")

56north/NutrientData documentation built on May 5, 2019, 10:45 a.m.