apply {fts}R Documentation

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

Author(s)

Whit Armstrong

Examples

x <- cbind(fts(),fts())

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

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


[Package fts version 0.7.7 Index]