fts (version 0.7.5)

apply: Apply Function

Description

Apply a function to the rows or columns of an fts object

Usage

column.apply(x, FUN, ...)
row.apply(x, FUN, ...)

Arguments

x
An Fts object
FUN
function to be applied
...
further arguments to function

Value

  • an Fts object or vector depending on the fuction type

Examples

Run this code
x <- cbind(fts(),fts())

## returns vector
x.col.sum <- column.apply(x,sum)

## returns fts
x.row.sum <- row.apply(x,sum)

Run the code above in your browser using DataLab