]> git.donarmstrong.com Git - ape.git/blobdiff - R/read.nexus.R
some updates for ape 3.0-6
[ape.git] / R / read.nexus.R
index 0268e6833a448853d78822c12ef9e8bbe4cb0904..2f4177e5aed51ebab7d48969b6fda7e7db86b421 100644 (file)
@@ -1,4 +1,4 @@
-## read.nexus.R (2012-02-09)
+## read.nexus.R (2012-09-28)
 
 ##   Read Tree File in Nexus Format
 
@@ -16,6 +16,7 @@
     names(phy) <- nms
     if (all(phy$node.label == "")) phy$node.label <- NULL
     class(phy) <- "phylo"
+    attr(phy, "order") <- "cladewise"
     phy
 }
 
@@ -97,6 +98,7 @@ clado.build <- function(tp)
         if (all(obj$node.label == "NA")) NULL
         else gsub("^NA", "", obj$node.label)
     class(obj) <- "phylo"
+    attr(obj, "order") <- "cladewise"
     obj
 }