hi this may be a basic filter question, but my goal is to essentially remove rows that meet BOTH of the following two conditions:
- animal is not equal to cat and 2) there cannot be an NA in the "animal_numbers" column
dataframe %>%
filter(animal != "cat & !is.na(animal_numbers))
unfortunately, with that statement rows where animal != cat OR rows where !is.na(animal_numbers) are being removed. I want to only remove rows if both meet this condition. does this make sense? thank you!!