https://researchdatapod.com/how-to-solve-r-error-in-n-must-be-used-inside-dplyr-verbs/
How to Solve R Error in n(): Must be used inside dplyr verbs