powered by
add dates to an Fts object by padding w/ additional dates or remove dates from an Fts object by trimming dates
pad(x, pad.dates) trim(x, trim.dates) filter.min.obs(x, obs.required)
An Fts object
a vector of dates.
number of required observations per row.
an fts object
# NOT RUN { x <- fts(index=seq(from=Sys.Date(),by="days",length.out=5),data=1:5) pad.dates <- index(x)[1] + c(10L,20L) pad(x,pad.dates) trim.dts <- index(x)[c(1,3)] trim(x,trim.dts) # }
Run the code above in your browser using DataLab