I would like to know how I could have the mean of notes by grouping dates within 6 months. In other words, let\'s say I want the notes
notes
dates