-## ace.R (2009-03-22)
+## ace.R (2009-05-10)
-## Ancestral Character Estimation
+## Ancestral Character Estimation
## Copyright 2005-2009 Emmanuel Paradis and Ben Bolker
model = if (type == "continuous") "BM" else "ER",
scaled = TRUE, kappa = 1, corStruct = NULL, ip = 0.1)
{
- if (class(phy) != "phylo")
+ if (!inherits(phy, "phylo"))
stop('object "phy" is not of class "phylo".')
if (is.null(phy$edge.length))
stop("tree has no branch lengths")