duck_incidents <- read_csv("https://raw.githubusercontent.com/samanthaseals/SDSII/refs/heads/main/files/data/lectures/W2_duck_incidents.csv") %>%
mutate(loc_yard = if_else(location == "Backyard", 1, 0),
loc_garage = if_else(location == "Garage", 1, 0),
loc_kitchen = if_else(location == "Kitchen", 1, 0),
loc_living = if_else(location == "Living Room", 1, 0))
duck_incidents %>% head()