I am trying to clean my stocks' df and I need to get rid of the ones that have less than 10 observations per month.
Already checked these 2 threads: subsetting-based-on-observations-in-a-month and ddply-for-sum-by-group-in-r
But I'm a noob and I cannot figure it out yet.
In short: Please, help me out eliminating IDs (Stocks) whose observations per month are <10 (for any month if possible). They are Id'd via the permanent number from CRSP (permno).
Here is the df: Lessthan10days.csv
Thank you so much,
Leo