Count occurrences of factor in R, with zero counts reported

前端 未结 5 1592
死守一世寂寞
死守一世寂寞 2021-02-07 23:58

I want to count the number of occurrences of a factor in a data frame. For example, to count the number of events of a given type in the code below:

library(plyr         


        
5条回答
提交回复
热议问题