powered by
Changing a series with 31 days a month to a series with the regular number of observations per month.
drop31(x_ts, new_start = 335, new_end = 55)
Input time series in the ts format
New start date as day of the year. Value from 1 to 366.
New end date as day of the year. Value from 1 to 366.
This function is used internally in dsa()
# NOT RUN { x <- xts::xts(rnorm(1095, 100,1), seq.Date(as.Date("2009-01-01"), length.out=1095, by="days")) a31 <- fill31(x) a <- drop31(a31, 1, 365) # }
Run the code above in your browser using DataLab