name_and_quant: Takeout orders from an Indian restaurant. A dataset...

name_and_quantR Documentation

Takeout orders from an Indian restaurant. A dataset containing the total quantity of each dish ordered, as well as the dish's price and status as vegetarian or meat.

Description

Takeout orders from an Indian restaurant.

A dataset containing the total quantity of each dish ordered, as well as the dish's price and status as vegetarian or meat.

Usage

name_and_quant

Format

A dataframe with 238 rows and 5 variables:

Item.Name

Name of the dish

Total.Quantity

Number of times the dish was ordered

Product.Price

Price of the dish

Prop.of.Total

Proportion of all orders

Meat.Veg

Whether the dish is vegetarian (Veg) or not (Meat)

Examples

pillar::glimpse(name_and_quant)

name_and_quant |> dplyr::group_by(Meat.Veg) |>
dplyr::summarise(Num.Dishes.Sold = sum(Total.Quantity),
Total.Revenue = sum(Total.Quantity * Product.Price))

sadleskorn/apply303 documentation built on April 14, 2022, 11:57 a.m.