I have a dataframe with the following columns:
If a year (see "year" column) has less than 10 weeks reported, I would like to delete it from the dataframe. The column "weeks_reporting" gives the order of the week in a year. How can I accomplish this task in R?