fts

0th

Percentile

Fts: a fast timeseries library

create an fts object by specifying index and data

Keywords
ts
Usage
fts(index,data)
Arguments
index

a vector of dates

data

a matrix, dataframe, or vector

Details

fts is an S3 class in which the fts object is represented as a native R matrix and the dates are attached as an attribute to the matrix

Value

a fts object

See Also

as.fts

Aliases
  • fts
  • Ops.fts
  • [.fts
  • [<-.fts
  • cbind.fts
  • rbind.fts
  • print.fts
  • plot.fts
Examples
# NOT RUN {
x <- fts(index=seq(from=Sys.Date(),by="months",length.out=24),data=1:24)
y <- fts(index=seq(from=Sys.Date(),by="months",length.out=12),data=13:24)
xx <- x[1:10,]

## intersection of dates is taken for Arith methods
xyp <- x + y
xys <- x - y
xym <- x * y
xyd <- x / y
xyg <- x > y
xyl <- x < y

cxy <- cbind(x,y)
rxy <- rbind(x,y)
print(x)
plot(x)
# }
Documentation reproduced from package fts, version 0.9.9.2, License: GPL-3

Community examples

Looks like there are no examples yet.