Taxa occurrence

Share:

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)