Question: How many people in the dataset are age 25 or younger and are passengers? Use PERSON_TYPE and AGE to answer this question.
Code. people is the name I set for the dataset:
library(tidyverse)
people %>%
filter(
AGE <= 25 &
PERSON_TYPE == "PASSENGERS") %>%
count()
I am getting 0. Based on notes from the lecture and a similar problem, I don't understand why I am getting 0. There is another problem similar to this where I am also getting 0 when I try finding how many.