Hello,
I'm new to R and I'm working with the preloaded air quality dataset in R studio and my task is to filter out things based on AND, OR, and NOT logical operators.
So, in order to filter out Solar.R (solar rays) and Wind (wind levels) above a certain number, I have to do the following:
airquality %>%
filter(Solar.R > 150 & Wind > 10)
- which then filters the dataset accordingly. My question is, do I need to repeat the "airquality %>% filter(" part of the code every time I need something new out of this dataset? When I have tried to run it without this, I get an error, but I'm wondering if I did something incorrectly or if that's just how R works.
Thanks in advance!