Using dplyr for frequency counts of interactions, must include zero counts
问题 This question was migrated from Cross Validated because it can be answered on Stack Overflow. Migrated 5 years ago . My question involves writing code using the dplyr package in R I have a relatively large dataframe (approx 5 million rows) with 2 columns: the first with an individual identifier ( id ), and a second with a date ( date ). At present, each row indicates the occurrence of an action (taken by the individual in the id column) on the date in the date column. There are about 300,000