get_best_recipes_du_chef: Calculate the best combination of ingredients i.e the one...

Description Usage Arguments Value

Description

Calculate the best combination of ingredients i.e the one that appears the most in the list of unique, with respect to the parameters and returns a list of recipes containing this combination. Test with get_best_recipes_du_chef(c("carotte", "jambon", "fromage"), 20, 1, T)

Usage

1
2
get_best_recipes_du_chef(ingredients_to_use, proportion_of_recipe,
  minimum_ingredients_to_use, must_include)

Arguments

ingredients_to_use

set of ingredients to use in our search

proportion_of_recipe

proportion of the recipe covered by the subset of ingredients

minimum_ingredients_to_use

number of minimum ingredients to use in the recipe

must_include

list of mandatory ingredients to use

Value

List of recipes


antoinepay/foodx documentation built on May 6, 2019, 4:30 p.m.