Grouping data for specific time points on R

I think we need a bit more information