Nspecies: Basic attributes of 'distrib_data' objects

View source: R/Methods_for_data_objects.R

NspeciesR Documentation

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)

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

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

Author(s)

Michael Krabbe Borregaard


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