[Vegan-commits] r1482 - in pkg/vegan: R inst man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Feb 10 12:21:42 CET 2011


Author: jarioksa
Date: 2011-02-10 12:21:42 +0100 (Thu, 10 Feb 2011)
New Revision: 1482

Modified:
   pkg/vegan/R/eigenvals.R
   pkg/vegan/inst/ChangeLog
   pkg/vegan/man/eigenvals.Rd
Log:
eigenvals learnt to know 'dudi' of ade4

Modified: pkg/vegan/R/eigenvals.R
===================================================================
--- pkg/vegan/R/eigenvals.R	2011-02-07 12:09:52 UTC (rev 1481)
+++ pkg/vegan/R/eigenvals.R	2011-02-10 11:21:42 UTC (rev 1482)
@@ -78,6 +78,16 @@
     out
 }
 
+## dudi objects of ade4
+
+`eigenvals.dudi` <-
+    function(x)
+{
+    out <- x$eig
+    class(out) <- "eigenvals"
+    out
+}
+
 `print.eigenvals` <-
     function(x, ...)
 {

Modified: pkg/vegan/inst/ChangeLog
===================================================================
--- pkg/vegan/inst/ChangeLog	2011-02-07 12:09:52 UTC (rev 1481)
+++ pkg/vegan/inst/ChangeLog	2011-02-10 11:21:42 UTC (rev 1482)
@@ -4,6 +4,8 @@
 
 Version 1.18-22 (opened January 19, 2011)
 
+	* eigenvals: learnt to know 'dudi' objects of ade4 package.
+
 	* betadisper: streamlined code somewhat.
 
 	* prestonfit: implemented splitting "tied" counts (1, 2, 4, 8 etc)

Modified: pkg/vegan/man/eigenvals.Rd
===================================================================
--- pkg/vegan/man/eigenvals.Rd	2011-02-07 12:09:52 UTC (rev 1481)
+++ pkg/vegan/man/eigenvals.Rd	2011-02-10 11:21:42 UTC (rev 1482)
@@ -40,8 +40,9 @@
 
 \details{
   This is a generic function that has methods for \code{\link{cca}},
-  \code{\link{wcmdscale}}, \code{\link{pcnm}}, \code{\link{prcomp}} and
-  \code{\link{princomp}} result objects. The default method also
+  \code{\link{wcmdscale}}, \code{\link{pcnm}}, \code{\link{prcomp}},
+  \code{\link{princomp}},  and\code{\link[ade4]{dudi}} (of \pkg{ade4}) 
+  result objects. The default method also
   extracts eigenvalues if the result looks like being from
   \code{\link{eigen}} or \code{\link{svd}}.  Functions
   \code{\link{prcomp}} and \code{\link{princomp}} contain square roots



More information about the Vegan-commits mailing list