timeprune: Prune tree in time order

Description Usage Arguments Value Author(s)

Description

timeprune prunes a tree by removing tips one at a time, in reverse time order. If the time is omitted and the tree is rooted, then the root-to-tip distance is used as a proxy of sampling time.

Usage

1
timeprune(tr, tipdates = NULL, reverse = FALSE)

Arguments

tr

a tree, as a phylo object

tipdates

a vector of sampling times or dates

reverse

a boolean (default: FALSE) determining whether the list of trees should be returned in reverse time

Value

A list with tipdates and trees.

Author(s)

Simon Frost (sdwfrost@gmail.com)


Hackout3/saphy documentation built on May 6, 2019, 10:52 p.m.