pad {fts}R Documentation

pad and trim dates

Description

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

Usage

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


x <- fts(rnorm(5))
pad(x,Sys.time()+60*60*24*200)

trim.dts <- dates(x)[c(1,3)]

trim(x,trim.dts)

[Package fts version 0.7.7 Index]