[Adephylo-commits] r87 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Dec 12 19:13:58 CET 2008


Author: jombart
Date: 2008-12-12 19:13:58 +0100 (Fri, 12 Dec 2008)
New Revision: 87

Modified:
   pkg/R/partition.R
Log:
treePart now can compute the orthobasis used by default in the orthogram 
(i.e. the $Bscores component in phylog objects).


Modified: pkg/R/partition.R
===================================================================
--- pkg/R/partition.R	2008-12-12 18:08:05 UTC (rev 86)
+++ pkg/R/partition.R	2008-12-12 18:13:58 UTC (rev 87)
@@ -67,7 +67,7 @@
     res <- res[,-1]
 
     if(result=="basis"){
-        return(res) # res is a matrix of dummy vectors
+        return(as.matrix(res)) # res is a matrix of dummy vectors
     }
 
 



More information about the Adephylo-commits mailing list