X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=R%2Fdrop.tip.R;h=b339578abf490ab764704257d05cff6ee92a842f;hb=6ee9e0a4e1e6bbc09187382bfdef57fafe3844c7;hp=948b2267b8e98a5bd5547b58fa4050f09b69d147;hpb=52008daf7f708f3fcdc735f22af308dd1a461670;p=ape.git diff --git a/R/drop.tip.R b/R/drop.tip.R index 948b226..b339578 100644 --- a/R/drop.tip.R +++ b/R/drop.tip.R @@ -1,8 +1,8 @@ -## drop.tip.R (2010-11-24) +## drop.tip.R (2011-05-19) ## Remove Tips in a Phylogenetic Tree -## Copyright 2003-2010 Emmanuel Paradis +## Copyright 2003-2011 Emmanuel Paradis ## This file is part of the R-package `ape'. ## See the file ../COPYING for licensing issues. @@ -79,6 +79,7 @@ drop.tip <- { if (!inherits(phy, "phylo")) stop('object "phy" is not of class "phylo"') + if (!length(tip)) return(phy) Ntip <- length(phy$tip.label) ## find the tips to drop: