Get dplyr count of distinct in a readable way

How about this option: Use filter to filter out any rows where aa has NAs, then group the data by column bb and then summarise by counting the number of unique elements of column aa by group of bb. As you can see I’m making use of the pipe operator %>% which you can use to “pipe” or “chain” commands together when using dplyr. This helps … Read more