Apply Function
Apply a function to the rows or columns of an fts object
column.apply(x, FUN, ...) row.apply(x, FUN, ...)
x |
An Fts object |
FUN |
function to be applied |
... |
further arguments to function |
an Fts object or vector depending on the fuction type
Whit Armstrong
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=24),data=1:24) z <- cbind(x,y) ## returns vector z.col.sum <- column.apply(z,sum) ## returns fts z.row.sum <- row.apply(z,sum)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.