pad.trim: pad and trim dates

Description Usage Arguments Value Author(s) Examples

Description

add dates to an Fts object by padding w/ additional dates or remove dates from an Fts object by trimming dates

Usage

1
2
3
pad(x, pad.dates)
trim(x, trim.dates)
filter.min.obs(x, obs.required)

Arguments

x

An Fts object

pad.dates

a vector of dates.

trim.dates

a vector of dates.

obs.required

number of required observations per row.

Value

an fts object

Author(s)

Whit Armstrong

Examples

1
2
3
4
5
6
7
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)

armstrtw/fts documentation built on June 3, 2017, 10:02 p.m.