Partition island species richness into in-situ, import, and export components
decompose_diversity.RdFor each island, counts in-situ speciation, import, and export events. In-situ speciation events are identified as cases in which an ancestral node is assigned to the same region as its descendant. Import events are cases where a descendant node is assigned to a different region than its ancestor. Export events are the reverse: the ancestral node is assigned to the focal island while its descendant is assigned to a different region. Both ancestor and descendant must be assigned to a region for any event to be detected.
Value
A data frame with one row per island and columns:
islandIsland name.
n_speciesTotal extant species on the island.
n_insituSpecies derived from in-situ speciation.
n_importImport events into this island.
n_exportExport events out of this island.
prop_insituProportion of species from in-situ speciation.