Given a dataframe as follows:
city type count
0 bj a 10
1 bj a 23
2 bj b 12
3 bj c 34
4 sh a 17
5 sh b 18
6 sh c 25
7 sh c 13
8 sh a 12
I want to filter rows based on city and type: bj-a, bj-c, sh-b, the expected result will like this:
city type count
0 bj a 10
1 bj a 23
2 bj c 34
3 sh b 18
How can I do that in R? Thanks.