[Pomp-commits] r296 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Aug 23 20:35:58 CEST 2010


Author: kingaa
Date: 2010-08-23 20:35:57 +0200 (Mon, 23 Aug 2010)
New Revision: 296

Modified:
   pkg/R/basic-probes.R
Log:
- bug fix in 'probe.acf'


Modified: pkg/R/basic-probes.R
===================================================================
--- pkg/R/basic-probes.R	2010-08-23 18:03:40 UTC (rev 295)
+++ pkg/R/basic-probes.R	2010-08-23 18:35:57 UTC (rev 296)
@@ -37,6 +37,7 @@
                        ...
                        ) {
   args <- list(...)
+  type <- match.arg(type)
   function (y) {
     zz <- do.call(acf,c(list(x=transform(y[var,]),lag.max=lag,plot=FALSE),args))
     if (type=="partial")
@@ -108,4 +109,3 @@
     val
   }
 }
-



More information about the pomp-commits mailing list