Estimates colonization rates events per lineage per unit time
colonization_rate.RdFor each tip, counts the number of dispersal events on the path from the root to the tip and divides by the total branch length of that path. Each dispersal event is recorded as both an import and an export, so the total transitions divided by two to avoid double-counting. Accounts for incomplete sampling fraction when available.
Value
A data frame with one row per tip and columns:
speciesTip label.
n_importNumber of import events on the path from root to tip.
n_exportNumber of export events on the path from root to tip.
n_colonizationNumber of dispersal events
path_lengthTotal branch length from root to tip.
colonization_rateColonization events per unit time.