Filtering Question

So, if I wanted to filter by gender, housing type, and purpose for a credit loan, could I just do filter and do == for each of these variables?

dplyr::filter is probably easier

filtered <- housing_df %>% filter(gender == female) %>% filter(type == sf) %>% filter(purpose == refi)
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.