I want to delete line 1 to 94875 in my dataset (global terrorism database - kaggle) so that I can just work with the attacks between 2010 and 2017. Furthermore, I want to summarize/count all lines with the same year -> so in the end I can do a linear regression about the increase of attacks over the years.
dplyr::filter(globalterrorismdb_0718dist, grepl('1970', iyear))
I already tried this to filter the lines but won´t help me to move on.