search_recipe: Searching Recipes

Description Usage Arguments Value Examples

Description

search_recipe returns a data.frame with search results. Make sure to spell the ingredients correctly, or the search won't work. You must specify at leat one ingredient. You can also add a search for a particular type of dish via the 'search' parameter. If you pass on more than 2 ingredients, you may set a minimum number of supplied ingredients to be included in the recipe. Ingredients more important for the dish must be passed in first. The function returns a data.frame object with a list of links to recipes, required ingredients, and name of the dish. Bon Appetit!

Usage

1
search_recipe(ingredients = NULL, search = NULL, minNumIngredients = 1)

Arguments

ingredients

vector of character strings.

search

a character string.

minNumIngredients

an integer.

Value

data.frame object with search results

Examples

1
search_recipe(c("onion", "cheese", "beef"), "burger", 3)

bendenis/701_Project documentation built on May 14, 2019, 10:37 a.m.