library(tidyverse)
library(stat1080r)
head(cereal_infected) Shelf Name Manufacturer Type Calories Protein Fat
1 Top 100%_Bran N C 70 4 1
2 Top 100%_Natural_Bran Q C 120 3 5
3 Top All-Bran K C 70 4 1
4 Top All-Bran_with_Extra_Fiber K C 50 4 0
5 Top Almond_Delight R C 110 2 2
6 Bottom Apple_Cinnamon_Cheerios G C 110 2 2
Sodium Fiber Carbohydrates Sugars Potassium Vitamins Weight Cups
1 130 10.0 5.0 6 280 25 1 0.33
2 15 2.0 8.0 8 135 0 1 1.00
3 260 9.0 7.0 5 320 25 1 0.33
4 140 14.0 8.0 0 330 25 1 0.50
5 200 1.0 14.0 8 NA 25 1 0.75
6 180 1.5 10.5 10 70 25 1 0.75
glimpse(cereal_infected)Rows: 77
Columns: 15
$ Shelf <chr> "Top", "Top", "Top", "Top", "Top", "Bottom", "Middle", "…
$ Name <chr> "100%_Bran", "100%_Natural_Bran", "All-Bran", "All-Bran_…
$ Manufacturer <chr> "N", "Q", "K", "K", "R", "G", "K", "G", "R", "P", "Q", "…
$ Type <chr> "C", "C", "C", "C", "C", "C", "C", "C", "C", "C", "C", "…
$ Calories <int> 70, 120, 70, 50, 110, 110, 110, 130, 90, 90, 120, 110, 1…
$ Protein <int> 4, 3, 4, 4, 2, 2, 2, 3, 2, 3, 1, 6, 1, 3, 1, 2, 2, 1, 1,…
$ Fat <int> 1, 5, 1, 0, 2, 2, 0, 2, 1, 0, 2, 2, 3, 2, 1, 0, 0, 0, 1,…
$ Sodium <int> 130, 15, 260, 140, 200, 180, 125, 210, 200, 210, 220, 29…
$ Fiber <dbl> 10.0, 2.0, 9.0, 14.0, 1.0, 1.5, 1.0, 2.0, 4.0, 5.0, 0.0,…
$ Carbohydrates <dbl> 5.0, 8.0, 7.0, 8.0, 14.0, 10.5, 11.0, 18.0, 15.0, 13.0, …
$ Sugars <dbl> 6, 8, 5, 0, 8, 10, 14, 8, 6, 5, 12, 1, 9, 7, 13, 3, 2, 1…
$ Potassium <int> 280, 135, 320, 330, NA, 70, 30, 100, 125, 190, 35, 105, …
$ Vitamins <int> 25, 0, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 2…
$ Weight <dbl> 1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 1.33, 1.00, 1.…
$ Cups <dbl> 0.33, 1.00, 0.33, 0.50, 0.75, 0.75, 1.00, 0.75, 0.67, 0.…