Learn R Programming

nodiv (version 1.4.2)

Nspecies: Basic attributes of distrib_data objects

Description

Calculates the species richness and site occupancy of a distrib_data object

Usage

Nspecies(distrib_data)
Nsites(distrib_data)
richness(distrib_data, sites = NULL)
occupancy(distrib_data, species = NULL)
sites(distrib_data)
species(distrib_data)
coords(distrib_data)

Value

Nspecies gives the number of species in the dataset, and Nsites the number of sites. richness gives a numeric vector with the species richness of all sites. occupancy gives the number of sites occupied by all species. sites gives a list of site names in the object. species gives a list of species names in the object. nodes gives a node labels or node numbers coords returns the spatial coordinates of points or grid cell centers

Arguments

distrib_data

An object of type distrib_data, nodiv_data or nodiv_result

sites

The site for which to return the richness

species

The species for which to return the occupancy

Author

Michael Krabbe Borregaard