What's the best option to express years in Raster Time Series object in R. I define years as dates:
YEARSSEQ <-seq(as.Date("2008-01-01"), as.Date("2009-01-01"), "year")
and then I pass them in rts constructor function
YEARSSEQ = c("2008", "2009")
returns the error
time must be one of time-based classes including: 'POSIXct', 'POSIXt', 'Date', 'timeDate', 'yearmon','yearqtr'
Is there any better option?