I have a dataframe like this one :
date value
"2010Q1" 1.200
"2010Q2" 1.203
"2010Q3" 2.111
"2010Q4" 2.165
"2011Q1" 1.455
"2011Q2" 1.356
"2011Q3" 2.056
"2011Q4" 2.134
I would like to sum each quarter of a given year in order to have the total value of the year. I am looking for a function returning :
date value
2010 6679
2011 7001
Thanks in advance !