I have about 468 layers in my raster stack (new layer every 16 days between 2000 and 2020). Is there a way to group the layers by year and instead have just 21 layers?
[1] "X2000.02.18" "X2000.03.05" "X2000.03.21" "X2000.04.06" "X2000.04.22"
[6] "X2000.05.08" "X2000.05.24" "X2000.06.09" "X2000.06.25" "X2000.07.11"