R dplyr - n() and n_distinct()
• n() counts rows within groups while n_distinct() counts unique values, forming the foundation of aggregation operations in dplyr
• n() counts rows within groups while n_distinct() counts unique values, forming the foundation of aggregation operations in dplyr