[Quantmod-commits] r603 - pkg/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Jan 20 18:20:44 CET 2013
Author: bodanker
Date: 2013-01-20 18:20:44 +0100 (Sun, 20 Jan 2013)
New Revision: 603
Modified:
pkg/R/addOBV.R
Log:
- commit Radek Maciaszek's patch to addOBV
Modified: pkg/R/addOBV.R
===================================================================
--- pkg/R/addOBV.R 2013-01-18 05:29:19 UTC (rev 602)
+++ pkg/R/addOBV.R 2013-01-20 17:20:44 UTC (rev 603)
@@ -9,7 +9,7 @@
{
stopifnot("package:TTR" %in% search() || require("TTR", quietly = TRUE))
lchob <- quantmod:::get.current.chob()
- x <- as.matrix(lchob at xdata)
+ x <- try.xts(lchob at xdata, error=FALSE)
x <- OBV(price = Cl(x), volume = Vo(x))
yrange <- NULL
chobTA <- new("chobTA")
More information about the Quantmod-commits
mailing list