Get Top N Rated Recipes
get_top_n_recipes.Rd
This function retrieves the top N rated recipes from the dataset based on user ratings.
Examples
get_top_n_recipes(data = recipes, n = 5)
#> # A tibble: 5 × 10
#> recipe_title rating description cuisine course diet prep_time cook_time
#> <chr> <dbl> <chr> <chr> <chr> <chr> <dbl> <dbl>
#> 1 Savory Shrimps On… 5 Savory Shr… Indian Appet… Non … 20 8
#> 2 Chilli Oil Recipe 5 This Chill… Asian Side … Vege… 10 15
#> 3 Bathua Raita Reci… 5 Bathua Rai… North … Side … Diab… 10 5
#> 4 Roasted Vegetable… 5 is a delic… Italia… Appet… Vege… 20 30
#> 5 Moroccan Chicken … 5 Moroccan C… African Main … Non … 20 45
#> # ℹ 2 more variables: ingredients <chr>, instructions <chr>