Node_size: Attributes of individual clades

View source: R/Node_based_analysis.R

Node_sizeR Documentation

Attributes of individual clades

Description

Functions that summarize the species that descend from a node, and their distribution.

Usage

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)

Arguments

node

A character or numeric variable specifying one or more nodes in the phylogeny

nodiv_data

An object of type nodiv_data or nodiv_result. Node_species also accepts objects of type phylo

names

If TRUE, return a character vector of species names; otherwise return the species index numbers in the community matrix

Details

If no node is specified in Node_size or Node_occupancy, the function will calculate the value for all nodes in the phylogeny

Value

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.

Author(s)

Michael Krabbe Borregaard


mkborregaard/nodiv documentation built on April 7, 2023, 9:52 a.m.