Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


dsa (version 0.74.18)

drop31: Cutting spurious days from a series with 31 days a month.

Description

Changing a series with 31 days a month to a series with the regular number of observations per month.

Usage

drop31(x_ts, new_start = 335, new_end = 55)

Arguments

x_ts

Input time series in the ts format

new_start

New start date as day of the year. Value from 1 to 366.

new_end

New end date as day of the year. Value from 1 to 366.

Details

This function is used internally in dsa()

Examples

Run this code
# 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