[Pomp-commits] r321 - in pkg: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Sep 24 12:31:21 CEST 2010


Author: kingaa
Date: 2010-09-24 12:31:20 +0200 (Fri, 24 Sep 2010)
New Revision: 321

Modified:
   pkg/R/pomp-methods.R
   pkg/man/pomp-methods.Rd
Log:
- add S3 method as.data.frame.pomp


Modified: pkg/R/pomp-methods.R
===================================================================
--- pkg/R/pomp-methods.R	2010-09-24 10:24:05 UTC (rev 320)
+++ pkg/R/pomp-methods.R	2010-09-24 10:31:20 UTC (rev 321)
@@ -29,6 +29,9 @@
       }
       )
 
+as.data.frame.pomp <- function (x)
+  as(x,"data.frame")
+
 ## a simple method to extract the data array
 setMethod(
           "data.array",

Modified: pkg/man/pomp-methods.Rd
===================================================================
--- pkg/man/pomp-methods.Rd	2010-09-24 10:24:05 UTC (rev 320)
+++ pkg/man/pomp-methods.Rd	2010-09-24 10:31:20 UTC (rev 321)
@@ -28,6 +28,7 @@
 \alias{states}
 \alias{as,pomp-method}
 \alias{coerce,pomp,data.frame-method}
+\alias{as.data.frame.pomp}
 \alias{coef,pomp-method}
 \alias{coef-pomp}
 \alias{coef<-}
@@ -47,6 +48,7 @@
 \S4method{window}{pomp}(x, start, end, \dots)
 \S4method{show}{pomp}(object)
 \S4method{as}{pomp}(object, class)
+as.data.frame.pomp(x)
 \S4method{coerce}{pomp,data.frame}(from, to = "data.frame", strict = TRUE)
 \S4method{print}{pomp}(x, \dots)
 \S4method{plot}{pomp}(x, y, variables, panel = lines,



More information about the pomp-commits mailing list