]> git.donarmstrong.com Git - ape.git/blobdiff - R/branching.times.R
new operators for "multiPhylo" + fixed small bug in bind.tree()
[ape.git] / R / branching.times.R
index 38c27dfffa71571f21b27cb1a00cfb25e633e827..509fd83cddf450545c7ca5ef5c67df2f90a5a336 100644 (file)
@@ -1,8 +1,8 @@
-## branching.times.R (2006-10-04)
+## branching.times.R (2009-05-10)
 
 ##    Branching Times of a Phylogenetic Tree
 
-## Copyright 2002-2006 Emmanuel Paradis
+## Copyright 2002-2009 Emmanuel Paradis
 
 ## This file is part of the R-package `ape'.
 ## See the file ../COPYING for licensing issues.
@@ -10,7 +10,7 @@
 branching.times <- function(phy)
 {
 ### the tree must be in cladewise order
-    if (class(phy) != "phylo")
+    if (!inherits(phy, "phylo"))
       stop('object "phy" is not of class "phylo"')
     n <- length(phy$tip.label)
     N <- dim(phy$edge)[1]