I have a dataset like
df <- data.frame(year.id = c("2011.01","2011.02","2011.03",
"2013.01","2013.02","2013.03",
"2015.01","2015.02","2015.03"),
values =c(20,25,30,
40,50,60,
70,80,90))
and I want to split this dataset if yearid starts with 2011/2013/2015 and what to get three datasets
##first df
year.id values
2011.01 20
2011.02 25
2011.03 30
##second df
2013.01 40
2013.02 50
2013.03 60
##third df
2015.01 70
2015.02 80
2015.03 90
many thanks in advance,