as.fts

0th

Percentile

Convert from/to fts

convert an object into an fts and vice versa

Keywords
ts
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

Aliases
  • as.fts
  • as.fts.default
  • as.fts.data.frame
  • as.fts.matrix
  • as.data.frame.fts
  • as.matrix.fts
Examples
N <- 100
xm <- matrix(rnorm(N))
dts <- format(seq(from=Sys.time(),length.out=N,by="DSTday"),"%Y-%m-%d")
rownames(xm) <- dts
x.from.m <- as.fts(xm)
x.from.df <- as.fts(as.data.frame(xm))
Documentation reproduced from package fts, version 0.7.5, License: GPL Version 3

Community examples

Looks like there are no examples yet.