occurrence: Taxa occurrence

Description Usage Arguments Value Note Examples

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)


Search within the flora package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.