motmot.2.0 (version 1.1.2)

removeNonBin: remove species occuring before time in the past (internal function)

Description

removes tips and lineages after a time in the past

Usage

removeNonBin(phy, traitData, keepByTime = 0, tol = 1e-08)

Arguments

phy

An object of class "phylo" (see ape package).

traitData

data associated with the species

keepByTime

an age at which to keep preserve tips before the present (time = 0)

tol

edge length precision in time cut (default = 1e-08)

Value

a list with the prunedPhylogeny and a prunedData

References

Puttick, M. N., Kriwet, J., Wen, W., Hu, S., Thomas, G. H., & Benton, M. J. (2017). Body length of bony fishes was not a selective factor during the biggest mass extinction of all time. Palaeontology, 60, 727-741.