]> git.donarmstrong.com Git - ape.git/blobdiff - R/compar.ou.R
improved ace()
[ape.git] / R / compar.ou.R
index 83e0d1cf5ab5eb0d939caac0a370a9884bc153d6..6512e63d24042e8ab728414c5a1123c9115a4481 100644 (file)
@@ -1,15 +1,15 @@
-## compar.ou.R (2006-10-05)
+## compar.ou.R (2009-05-10)
 
 ##   Ornstein--Uhlenbeck Model for Continuous Characters
 
-## Copyright 2005-2006 Emmanuel Paradis
+## Copyright 2005-2009 Emmanuel Paradis
 
 ## This file is part of the R-package `ape'.
 ## See the file ../COPYING for licensing issues.
 
 compar.ou <- function(x, phy, node = NULL, alpha = NULL)
 {
-    if (class(phy) != "phylo")
+    if (!inherits(phy, "phylo"))
       stop('object "phy" is not of class "phylo".')
     if (!is.numeric(x)) stop("'x' must be numeric.")
     if (!is.null(names(x))) {