tests/bucketize.test2.R

##############################################################
##
## Another test for function "bucketize"
##
##############################################################

library(backtest)

load("bucketize.test2.RData")


## save(tmp.2, tmp.2.x, tmp.2.y, truth.2, file = "bucketize.test2.RData")

## Find result from a bucketize test

result.2 <- backtest:::bucketize(tmp.2, tmp.2.x, tmp.2.y, compute = mean)

## Did the test case work?

stopifnot(
          isTRUE(all.equal(result.2, truth.2))
          )

Try the backtest package in your browser

Any scripts or data that you put into this service are public.

backtest documentation built on May 2, 2019, 10:58 a.m.