apply_rank: Apply a rank function to an 'xts' price history.

Description Usage Arguments Value See Also Examples

View source: R/apply_rank.R

Description

Apply a rank function to an xts price history.

Usage

1
apply_rank(x, rank_fun, ...)

Arguments

x

the price history as an xts object

rank_fun

the ranking function to apply

...

any parameters passed to the rank function

Value

the result of the given rank function

See Also

ave_3ROC, weight_ave_3ROC, strength_ROC

Examples

1
2
3
4
5
6
7
## Not run: 
library(quantmod)
getSymbols(XLE,auto.assign=TRUE)
rv <- apply_rank(XLE,ave_3ROC)
head(rv)

## End(Not run)

greatgray/scorecard documentation built on May 17, 2019, 8:34 a.m.