researchdatapod.com
How to Solve R Error in n(): Must be used inside dplyr verbs
This error occurs when you try to call the n() function from the dplyr package but already have plyr loaded after loading dplyr. Both packages have the functions summarise() or summarize() which us…