useDynLib(fts)

importFrom(utils,
           head,
           tail)

importFrom(stats,
           lag)

export(
       fts,
       as.fts,
       as.fts.default,
       as.matrix.fts,
       Ops.fts,
       "[.fts",
       "[<-.fts",
       head.fts,
       tail.fts,
       as.data.frame.fts,
       cbind.fts,
       rbind.fts,
       pad,
       trim,
       read.csv.fts,
       read.rds.fts,
       write.csv.fts,
       write.rds.fts,
       print.fts,

       to.quarterly,
       to.weekly,
       to.monthly,

       moving.mean,
       moving.sum,
       moving.product,
       moving.max,
       moving.min,
       moving.rank,
       moving.sd,
       expanding.max,
       expanding.min,
       moving.cor,
       moving.cov,
       since.na,
       lead,
       lead.fts,
       lag.fts,
       fill.fwd,
       fill.bwd,
       fill.value,

       plot.fts,

       dates,
       dates.fts,
       "dates<-",
       event.dates,

       remove.na.rows,
       remove.all.na.rows,
       row.apply,
       row.any,
       row.all,
       column.apply,
       col.any,
       col.all
)

S3method("Ops", "fts")
S3method("[", "fts")
S3method("cummax", "fts")
S3method("cummin", "fts")
S3method("cumprod", "fts")
S3method("cumsum", "fts")

S3method("head", "fts")
S3method("tail", "fts")

S3method("lag", "fts")

S3method("plot", "fts")
S3method("print", "fts")
