sample_data <- data.frame(
Incident.Date = c('1/1/2015','1/12016','2/2/2015','2/2/2018','5/5/2016','4/4/2015','4/4/2017','4/4/2018','6/6/2018','5/5/2018','1/4/2015'))
I have a dataset that looks similar to this, I would like to create a script that counts the number of times "2016" appears in a date, 2017, 2018 and so on. Then will output how many times that occurred. Essentially I have a bunch of dates, that I would like to graph how many times that date occurred for this kind of dataset. Provided I have linked an example of what my dataset would look like.