I would like to make seperate datasets for the years 2015, 2016 and 2017. The way I did it for one year is like the following:
cars, bikes, motorcycle etc are other small dataframes that I would like to extract information for only one particular year and gather the information from all the different datasets into one. So the gathered data.frame for 2017 would be df_2017. The name of the columns are the years (2015, 2016, 2017)
Does anyone know how I can implement this in a FOR-loop (or by vectorization) so I dont have to write the code over and over again?