Skip to contents

This function filters the recipes dataset based on provided criteria such as ingredients, cuisine, diet, maximum preparation time, and maximum cooking time.

Usage

get_recipes(data, ingredients = NULL, cuisine = NULL, diet = NULL)

Arguments

data

Data frame containing the recipes.

ingredients

Vector of ingredients for filtering

cuisine

String specifying the cuisine type for filtering

diet

String specifying the diet type for filtering

Value

A data frame of filtered recipes.

Examples

get_recipes(recipes, ingredients = c("tomato", "chicken"),
           cuisine = "Italian", diet = "Gluten Free")
#> # A tibble: 0 × 10
#> # ℹ 10 variables: recipe_title <chr>, rating <dbl>, description <chr>,
#> #   cuisine <chr>, course <chr>, diet <chr>, prep_time <dbl>, cook_time <dbl>,
#> #   ingredients <chr>, instructions <chr>