I know that there are many ways of calculating the total values in a vector, including the table()
I just wanted to know that can we use dplyr / tidyverse?
I also know that the plyr::count() seems to work nicely, but is clearly from plyr rather than dplyr
c(1,3,3,3,4,4) %>% plyr::count()
1 1 1
2 3 3
3 4 2