R/root1.r

Defines functions Root1

Documented in Root1

Root1 <- function(phy, outgroup, select=1, ...) {
res <- try(ape::root(phy, outgroup, ...))
if (inherits(res, "try-error")) {
 res <- ape::root(phy, outgroup[select], ...)
 }
res
}

Try the shipunov package in your browser

Any scripts or data that you put into this service are public.

shipunov documentation built on Feb. 16, 2023, 9:05 p.m.