occurrences: Access functions to the community matrix of 'distrib_data'...

View source: R/Methods_for_data_objects.R

occurrencesR Documentation

Access functions to the community matrix of distrib_data objects

Description

Gives the species in a site, or the sites occupied by a species, in a distrib_data object

Usage

occurrences(distrib_data, species, value = c("index", "names", "logical", "raw"))
assemblage(distrib_data, site, value = c("index", "names", "logical", "raw"))

Arguments

distrib_data

An object of type distrib_data, nodiv_data or nodiv_result

species

The number or name of a species in the data set

site

The number or name of a site in the data set

value

The type of data to return, see below.

Value

type = "01" gives a vector of 0s and 1s from the community matrix type = "logical" gives a logical vector identifying species or sites type = "index" gives the index number of species or sites in the community matrix

Author(s)

Michael Krabbe Borregaard


nodiv documentation built on Aug. 21, 2023, 9:10 a.m.