I'm trying to filter my dataset for multiple categorical data. Essentially I have a dataset of crimes for many different neighborhoods, but I only want to look at variables that concerns 18 neighborhoods (instead of the 100 neighborhoods in the dataset).
This code works for one neighborhood, but I can't seem to figure out how to filter the data for 18 neighborhoods.
Police_Force <- Police_Use_of_Force %>% filter(Neighborhood == "Downtown West")
I have tried this
Police_Force <- Police_Use_of_Force %>% filter(Neighborhood == "Downtown West, Jordan, Hawthorne, Near - North, Willard - Hay, Folwell, Ventura Village, Lowry Hill East, Marcy Holmes, Midtown, Phillips, McKinley, Holland, CARAG, Audubon Park, Beltrami, ECCO, Hale")
and this
Police_Force <- Police_Use_of_Force %>% filter(Neighborhood == "Downtown West" "Jordan", "Hawthorne", "Near - North", "Willard - Hay", "Folwell", "Ventura Village", "Lowry Hill East", "Marcy Holmes", "Midtown Phillips", "McKinley", "Holland", "CARAG", "Audubon Park", "Beltrami", "ECCO", "Hale")
I would appreciate it if anybody could help me with this.
Thank you in advance!