I am having trouble using a combination of the case_when and filter functions in a loop from the dplyr package in R.
case_when
filter
dplyr
I have the