[Mattice-commits] r19 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Nov 13 21:50:16 CET 2008


Author: andrew_hipp
Date: 2008-11-13 21:50:16 +0100 (Thu, 13 Nov 2008)
New Revision: 19

Modified:
   pkg/R/revisedTreeTraversal.R
Log:
Cleaned up regimeTitles

Modified: pkg/R/revisedTreeTraversal.R
===================================================================
--- pkg/R/revisedTreeTraversal.R	2008-11-13 19:30:24 UTC (rev 18)
+++ pkg/R/revisedTreeTraversal.R	2008-11-13 20:50:16 UTC (rev 19)
@@ -203,7 +203,7 @@
 #  "node" "ancestor" "times" "species" = the standard tree specification vectors of the OUCH-style tree
 #  "cladeMembersList" = list of vectors containing names of the members of each clade (except for the root of the tree)
 # Value: list of vectors that can each be plugged directly into OU analysis as the "regimes" argument
-function(tree, cladeMembersList) {
+function(tree, cladeMembersList, maxNodes = NULL) {
   ## ------------------ begin ouchtree block -----------------
   ## check to see if tree inherits 'ouchtree'
   if (!is(tree,'ouchtree')) 
@@ -221,7 +221,7 @@
   #changeNodesVector = vector("character", length(changeNodesList))
   #for (i in 1:length(changeNodesList)) # Changing cladeMemberList to a 1-d vector
   #  {changeNodesVector[i] = changeNodesList[[i]]}
-  allRegimes = allPossibleRegimes(changeNodesVector)
+  allRegimes = allPossibleRegimes(changeNodesVector, maxNodes)
   regimePaintings = vector("list", length(allRegimes))
   for (i in 1:length(allRegimes)) {
     allRegimes[[i]] = c("1", allRegimes[[i]])



More information about the Mattice-commits mailing list