Functions that summarize the species that descend from a node, and their distribution.
Node_size(nodiv_data, node = NULL)
Node_sites(nodiv_data, node, names = TRUE)
Node_species(nodiv_data, node, names = TRUE)
Node_occupancy(nodiv_data, node = NULL)
For Node_size
and Node_occupancy
the number of species or number of occupied sites of the nodes; or a vector giving this value for all nodes. For Node_species
or Node_sites
a character vector of names of species descending from a node, or the sites where they occur.
A character or numeric variable specifying one or more nodes in the phylogeny
An object of type nodiv_data
or nodiv_result
. Node_species
also accepts objects of type phylo
If TRUE
, return a character vector of species names; otherwise return the species index numbers in the community matrix
Michael Krabbe Borregaard
If no node
is specified in Node_size
or Node_occupancy
, the function will calculate the value for all nodes in the phylogeny