So, my code below was working at some point but it is no longer working.
This is my code:
new_plot <- data_set %>%
group_by("County") %>%
select("people_vaccinated") %>%
Date == "2021-02-11"
exists("County")
new_plot
ggplot(new_plot, mapping = aes(x= County, y = people_vaccinated)) +
geom_bar()
At one point, this was working completely fine but I must have messed something up here or earlier for it to not work, because I keep getting "County" not found. I used exists() to find if my variable exists, which it most certainly does in data_set, but it just keeps returning "Error in FUNC(x[[I]], ...) : object 'County' not found. It worked before and I was so happy with it, now I don't know what to do about it. Can anyone tell me what I am doing wrong?