Skip to contents

This function selects a random recipe from the datase to suprise the customer

Usage

random_recipe(data)

Arguments

data

Data frame containing the recipes.

Value

A single randomly selected recipe.

Examples

random_recipe(data = recipes)
#> # A tibble: 1 × 10
#>   recipe_title     rating description   cuisine course diet  prep_time cook_time
#>   <chr>             <dbl> <chr>         <chr>   <chr>  <chr>     <dbl>     <dbl>
#> 1 Egg Korma Recipe   4.92 Egg Korma an… Indian  Side … Egge…        10        20
#> # ℹ 2 more variables: ingredients <chr>, instructions <chr>