0

I'm trying to tidy a dataset about film festivals in the US ("X2020_Film_Festival") to focus solely on festivals held in the Southeast. I want to only pull rows for those states. And the variables I want to include are category, festival name, website, city, state. (The original dataset has 45 variables, so this is a significant reduction.)

I've written the following code:

SE_film <- X2020_Film_Festival_Database_amp_Calendar_2020_DATABASE %>%
  filter(State == "AL", "AR", "FL", "GA", "KY", "LA", "MS", "NC", "SC", "TN") %>%
  select(Category, `Festival Name`, Website, City, State)

I'm being greeted with the following error message:

Error in `filter()`:
ℹ In argument: `"AR"`.
Caused by error:
! `..2` must be a logical vector, not the string "AR"

Can anyone tell me what I'm missing right now? I keep re-tracing my steps, but I can't seem to get the code just right.

r2evans
  • 141,215
  • 6
  • 77
  • 149

0 Answers0