Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.fts

Convert from/to fts


Description

convert an object into an fts and vice versa

Usage

as.fts(x)

Arguments

x

an R matrix or data.frame

Details

converts a rectanular object into an Fts object must be able to convert rownames into some form of dates

Value

an Fts object

Author(s)

Whit Armstrong

Examples

N <- 100
xm <- matrix(rnorm(N))
dts <- format(seq(from=Sys.Date(),length.out=N,by="days"),"%Y-%m-%d")
rownames(xm) <- dts
x.from.m <- as.fts(xm)
x.from.df <- as.fts(data.frame(asofdate=dts,my.data=xm))

fts

R Interface to 'tslib' (a Time Series Library in C++)

v0.9.9.2
GPL-3
Authors
Whit Armstrong <armstrong.whit@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.