occurrence: Taxa occurrence

View source: R/occurrence.R

occurrenceR Documentation

Taxa occurrence

Description

Find the taxa that occur in a given state of Brazil.

Usage

occurrence(states, type = c("any", "only", "all"), taxa = NULL)

Arguments

states

a character vector with one or more state abbreviations following. See notes for abbreviations.

type

type of matching to be used. any will return the taxa that occur in any of the passed states. only matches taxa that occur only in all provided (no more, no less) states and all matches taxa that occur at least in all states passed. See examples.

taxa

optional character vector to match against the states

Value

a data frame

Note

List of abbreviations: http://en.wikipedia.org/wiki/States_of_Brazil

Examples

## Not run: 
occ.any <- occurrence(c("SP", "BA", "MG"), type = "any")
occ.only <- occurrence(c("SP", "BA", "MG"), type = "only")
occ.all <- occurrence(c("SP", "BA", "MG"), type = "all")
occ.taxa <- occurrence(c("SP", "BA", "MG"), type = "all", taxa = lower.taxa("Myrcia"))

head(occ.any)
head(occ.only)
head(occ.all)
head(occ.taxa)

## End(Not run)

gustavobio/flora documentation built on Feb. 3, 2024, 8:40 a.m.