If you want to just extend all tips by a constant amount you can do this: # extend terminal edges by arbitrary amount (here: 13) idx <- which(phy$edge[,2] < (phy$Nnode + 1)); phy$edge.length[idx] <- phy$edge.length[idx] + 13;
HTH. Joseph. ________________________________________ Joseph W. Brown Post-doctoral Researcher, Smith Laboratory University of Michigan Department of Ecology & Evolutionary Biology Room 2071, Kraus Natural Sciences Building Ann Arbor MI 48109-1079 josep...@umich.edu > On 26 Jul, 2017, at 11:39, David Bapst <dwba...@gmail.com> wrote: > > Not sure what you mean by extending tips, Will. Could you describe a > small example? > -Dave > > On Fri, Jul 21, 2017 at 5:15 PM, William Gearty <wgea...@stanford.edu> wrote: >> Hi all, >> >> Before I go ahead and wrote a whole script, I was wondering if there is a >> function or script out there for extending tips (or setting the ages of >> tips) given a list of taxa and ages? >> I haven't found anything, but perhaps I'm searching the wrong phrase(s). >> >> Thanks, >> Will >> >> -- >> William Gearty >> PhD Candidate, Paleobiology >> Department of Geological Sciences >> Stanford School of Earth, Energy & Environmental Sciences >> williamgearty.com >> >> [[alternative HTML version deleted]] >> >> _______________________________________________ >> R-sig-phylo mailing list - R-sig-phylo@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-phylo >> Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/ > > > > -- > David W. Bapst, PhD > https://github.com/dwbapst/paleotree > > _______________________________________________ > R-sig-phylo mailing list - R-sig-phylo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-phylo > Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/ [[alternative HTML version deleted]] _______________________________________________ R-sig-phylo mailing list - R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/