Final Exam Tempelate

BAIS 462

Author

Patrick Berry

Introduction and Explanation of Data

Load Libraries

Load Data

[1] "Requesting data from: https://data.cincinnati-oh.gov/resource/rg6p-b3h3.json?$where=business_name='DANA''S'%20OR%20business_name%20like%20'%25LISTERMANN%20BREWING%25'&$select=business_name,action_status,insp_type,action_date,violation_description,violation_comments"
Rows: 118
Columns: 6
$ business_name         <chr> "LISTERMANN BREWING TAP ROOM & KITCHEN", "DANA'S…
$ action_status         <chr> "Approved - Minor Violations", "Approved - Minor…
$ insp_type             <chr> "ROUTINE", "ROUTINE", "ROUTINE", "ROUTINE", "ROU…
$ action_date           <date> 2024-10-24, 2024-10-24, 2024-10-24, 2024-10-24,…
$ violation_description <chr> "6.2(I)(1) - Facilities: Lighting - intensity", …
$ violation_comments    <chr> "The light intensity was <10 foot candles at 30 …

Directed Analysis

top_violations <- cinci_food_df %>%

filter(!is.na(violation_description)) %>% # Drop NAs first

count(violation_description, sort = TRUE) %>%

mutate(percent = round(n / sum(n) * 100, 1)) %>%

slice_max(order_by = n, n = 10)

# View it nicely

top_violations

# Create the table
top_violations <- cinci_food_df %>%
  filter(!is.na(violation_description)) %>%
  count(violation_description, sort = TRUE) %>%
  mutate(percent = round(n / sum(n) * 100, 1)) %>%
  slice_max(order_by = n, n = 10)

# Display it as a nice table
knitr::kable(top_violations, caption = "Top 10 Most Common Violations")
Top 10 Most Common Violations
violation_description n percent
“3717-1-03.4(G)(4) - Violation - RTE TCS, date marking

Date marking was not done in a consistent manner according to the code.” | 10| 9.1| |“3717-1-07.0(B) - Violation - Poisonous/toxic material-working containers

Working containers of poisonous/toxic materials are not labeled.” | 8| 7.3| |“3717-1-03.2(A)(2) - Violation - Bare Hand Contact RTE Food

Food employee was touching ready-to-eat food with bare hands.” | 4| 3.6| |“3717-1-03.2(C)(1) - Violation - Preventing Contamination by Separation, Packaging, and Segregation

Ready-to-eat food was not protected from cross-contamination by raw animal food.” | 4| 3.6| |“3717-1-03.2(M)(2)(a) - Violation - Wiping cloths-use limitation

Wet wiping cloth was not maintained in a sanitizer solution between uses.” | 4| 3.6| |“3717-1-03.2(Y) - Violation - Miscellaneous sources of contamination

Miscellaneous sources of contamination observed.” | 4| 3.6| |“3717-1-03.4(F)(1)(b) - Violation - TCS-cold holding

TCS foods were being held at temperatures >41° F.” | 4| 3.6| |“3717-1-04.4(P) - Violation - Warewashing equipment -sanitizer concentration.

Sanitizer concentration is not being monitored.” | 4| 3.6| |“3717-1-04.5(A)(1)(2) - Violation - Equipment cleanliness-food contact

Food-contact surfaces were dirty.” | 4| 3.6| |“3701-21-22 - Violation - Food Choking

Facility did not have accessible instructions for removing food of a choking victim.” | 3| 2.7| |“3717-1-03.2(D) - Violation - Food Storage containers-common name ID

Working containers of food are not properly labeled.” | 3| 2.7| |“3717-1-04.4(A)(1) - Violation - Equipment-good repair and proper adjustment.

Equipment and/or components were not maintained in good working order.” | 3| 2.7|