[Quantmod-commits] r604 - in pkg: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon May 6 23:11:08 CEST 2013


Author: jryan
Date: 2013-05-06 23:11:08 +0200 (Mon, 06 May 2013)
New Revision: 604

Modified:
   pkg/R/OHLC.transformations.R
   pkg/man/Delt.Rd
Log:
o docs patch in Delt - thanks Dirk!
o Lo asn has.Lo patch to fix long-standing LOW annoyance. Thanks Alexios Ghalanos
  for reminding/patching


Modified: pkg/R/OHLC.transformations.R
===================================================================
--- pkg/R/OHLC.transformations.R	2013-01-20 17:20:44 UTC (rev 603)
+++ pkg/R/OHLC.transformations.R	2013-05-06 21:11:08 UTC (rev 604)
@@ -224,7 +224,7 @@
 function(x)
 {
   if(has.Lo(x))
-    return(x[,grep('Low',colnames(x),ignore.case=TRUE)])
+    return(x[,grep('\\.Low',colnames(x),ignore.case=TRUE)])
   stop('subscript out of bounds: no column name containing "Low"')
 }
 
@@ -235,7 +235,7 @@
   if(!is.null(colAttr))
     return(if(which) colAttr else TRUE)
 
-  loc <- grep('Low',colnames(x),ignore.case=TRUE)
+  loc <- grep('\\.Low',colnames(x),ignore.case=TRUE)
   if(!identical(loc,integer(0))) {
     return(if(which) loc else TRUE)
   } else FALSE

Modified: pkg/man/Delt.Rd
===================================================================
--- pkg/man/Delt.Rd	2013-01-20 17:20:44 UTC (rev 603)
+++ pkg/man/Delt.Rd	2013-05-06 21:11:08 UTC (rev 604)
@@ -15,7 +15,7 @@
   \item{x1}{ \emph{m x 1} vector }
   \item{x2}{ \emph{m x 1} vector }
   \item{k}{ change over \code{k}-periods. default k=1 when x2 is NULL. }
-  \item{type}{ type of difference. log or arithmetic (defauly). }
+  \item{type}{ type of difference. log or arithmetic (default). }
 }
 \details{
 When called with only \code{x1}, the one period percent change of the



More information about the Quantmod-commits mailing list