# Load library
library(tidyverse)
# Import data
sandwiches = read_csv(file = "https://raw.githubusercontent.com/zief0002/epsy-5261/main/data/sandwiches.csv")
# View data
sandwichessandwiches.csv
The data in sandwiches.csv includes nutrition information for sandwiches. The 40 sandwiches were randomly sampled from all sandwiches available from the Erbert & Gerbert’s, Firehouse, Jimmy Johns, Potbelly, Subway, and Quiznos menus (as of August 28, 2023). All nutrition information was computed for a six inch sandwich.
The attributes included in the data are:
restaurant: Name of the restaurantsandwich: Name of the sandwichcalories: Caloriesfat: Fat (g)sat_fat: Saturated fat (g)trans_fat: Trans fat (g)chol: Cholesterol (mg)sodium: Sodium (mg)carbs: Carbohydrates (g)fiber: Dietary Fiber (g)sugars: Sugars (g)protein: Protein (g)
Preview
# A tibble: 40 × 12
restaurant sandwich calories fat sat_fat
<chr> <chr> <dbl> <dbl> <dbl>
1 Subway Roast beef Wrap 500 14 3
2 Erbert & Gerbert's Tappy (Honey Wheat Bread) 778 41 11
3 Subway Italian B.M.T. 240 15 5
4 Potbelly Pizza Melt 750 35 14
5 Subway Veggie Delite 50 1 0
6 Erbert & Gerbert's Tappy (French Bread) 758 40 11
7 Potbelly Ham, Mushroom, Egg & Swiss 720 27 12
8 Jimmy Johns The Veggie (#6) 502. 29.2 9.75
9 Erbert & Gerbert's 327 206 10 0
10 Jimmy Johns Country Club (#11) 585 23.2 6
trans_fat chol sodium carbs fiber sugar protein
<dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 0 75 1440 58 3 7 38
2 0 53 1574 71 5 6 30
3 0 50 880 12 4 5 14
4 0 90 2200 70 4 7 39
5 0 0 75 9 4 5 3
6 0 53 1544 71 3 4 31
7 0 340 2210 67 3 6 51
8 0 48.8 810 48 4.5 1.5 25.5
9 117 1537 63 5 23 43 10
10 0 75 1485 48.8 3.75 2.25 38.2
# ℹ 30 more rows