apply {fts} | R Documentation |
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 <- cbind(fts(),fts()) ## returns vector x.col.sum <- column.apply(x,sum) ## returns fts x.row.sum <- row.apply(x,sum)