occurrence: Taxa occurrence

Description Usage Arguments Value Note Examples

View source: R/occurrence.R

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)

Example output

sh: 1: wc: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Could not detect number of cores, defaulting to 1.
   id   family            search.str                          occurrence
1 271 Rutaceae     Almeidea coerulea                               BR-BA
2 274 Rutaceae     Almeidea lilacina             BR-ES|BR-MG|BR-RJ|BR-SP
3 277 Rutaceae        Almeidea rubra       BR-BA|BR-ES|BR-MG|BR-PR|BR-RJ
4 280 Rutaceae      Andreadoxa flava                               BR-BA
5 285 Rutaceae   Angostura bracteata                   BR-BA|BR-ES|BR-RJ
6 342 Rutaceae Balfourodendron molle BR-BA|BR-CE|BR-MG|BR-PE|BR-PI|BR-SE
    id           family                search.str        occurrence
1 4291 Alstroemeriaceae  Alstroemeria plantaginea BR-BA|BR-MG|BR-SP
2 4585      Apocynaceae            Ditassa retusa BR-BA|BR-MG|BR-SP
3 4616      Apocynaceae     Hemipogon carassensis BR-BA|BR-MG|BR-SP
4 4804      Apocynaceae       Oxypetalum strictum BR-BA|BR-MG|BR-SP
5 5408       Asteraceae          Mikania obtusata BR-BA|BR-MG|BR-SP
6 7018   Convolvulaceae Evolvulus stellariifolius BR-BA|BR-MG|BR-SP
   id   family                                search.str
1 401 Rutaceae                         Citrus reticulata
2 542 Rutaceae                   Dictyoloma vandellianum
3 583 Rutaceae                      Esenbeckia febrifuga
4 589 Rutaceae                    Esenbeckia grandiflora
5 591 Rutaceae Esenbeckia grandiflora subsp. grandiflora
6 592 Rutaceae   Esenbeckia grandiflora var. grandiflora
                                                                                                                           occurrence
1                                                                               BR-BA|BR-DF|BR-GO|BR-MG|BR-MS|BR-PR|BR-RS|BR-SC|BR-SP
2                                                                                           BR-AC|BR-BA|BR-ES|BR-MG|BR-RJ|BR-RO|BR-SP
3                                                                   BR-BA|BR-CE|BR-ES|BR-MG|BR-MS|BR-MT|BR-PE|BR-PR|BR-RJ|BR-SC|BR-SP
4                   BR-AC|BR-AL|BR-BA|BR-CE|BR-ES|BR-GO|BR-MG|BR-MS|BR-PA|BR-PB|BR-PE|BR-PI|BR-PR|BR-RJ|BR-RO|BR-RS|BR-SC|BR-SE|BR-SP
5 BR-AC|BR-AL|BR-BA|BR-CE|BR-DF|BR-ES|BR-GO|BR-MA|BR-MG|BR-MS|BR-MT|BR-PA|BR-PB|BR-PE|BR-PI|BR-PR|BR-RJ|BR-RO|BR-RS|BR-SC|BR-SE|BR-SP
6 BR-AC|BR-AL|BR-BA|BR-CE|BR-DF|BR-ES|BR-GO|BR-MG|BR-MS|BR-MT|BR-PA|BR-PB|BR-PE|BR-PI|BR-PR|BR-RJ|BR-RN|BR-RO|BR-RS|BR-SC|BR-SE|BR-SP
     id    family          search.str
1 10661 Myrtaceae    Myrcia amazonica
2 10672 Myrtaceae Myrcia brasiliensis
3 10684 Myrtaceae    Myrcia eriocalyx
4 10688 Myrtaceae    Myrcia fenzliana
5 10698 Myrtaceae  Myrcia grandifolia
6 10699 Myrtaceae   Myrcia guianensis
                                                                                                         occurrence
1 BR-AC|BR-AM|BR-AP|BR-BA|BR-DF|BR-ES|BR-GO|BR-MA|BR-MG|BR-MT|BR-PA|BR-PE|BR-PR|BR-RJ|BR-RO|BR-RR|BR-SC|BR-SP|BR-TO
2                                                                   BR-BA|BR-ES|BR-MG|BR-PR|BR-RJ|BR-RS|BR-SC|BR-SP
3                                                                                     BR-BA|BR-ES|BR-MG|BR-RJ|BR-SP
4                                                                                     BR-BA|BR-DF|BR-GO|BR-MG|BR-SP
5                                                                               BR-BA|BR-ES|BR-MG|BR-PR|BR-RJ|BR-SP
6       BR-AC|BR-AL|BR-AM|BR-AP|BR-BA|BR-CE|BR-ES|BR-GO|BR-MG|BR-MS|BR-MT|BR-PA|BR-PE|BR-RJ|BR-RN|BR-RS|BR-SC|BR-SP

flora documentation built on April 28, 2020, 9:05 a.m.

Related to occurrence in flora...