Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- idigbio in `spocc`
- ```r
- devtools::install_github("ropensci/spocc")
- ```
- ```r
- library("spocc")
- ```
- ## name search
- ```r
- res <- occ(query = "Acer", from = c("idigbio", "gbif", "vertnet"), limit = 50)
- res
- #> Searched: idigbio, gbif, vertnet
- #> Occurrences - Found: NA, Returned: 150
- #> Search type: Scientific
- #> gbif: Acer (50)
- #> vertnet: Acer (50)
- #> idigbio: Acer (50)
- ```
- ### just idigbio
- ```r
- res$idigbio
- #> Species [Acer (50)]
- #> First 10 rows of [Acer]
- #>
- #> name longitude latitude prov uuid
- #> 1 acer NA NA idigbio 0024fe49-7bdc-4c0a-b248-715c60553737
- #> 2 acer NA NA idigbio 00c8e7d9-d5de-44dd-8a3e-de7e1b9ade30
- #> 3 acer NA NA idigbio 01aedfce-5e21-4512-b6ef-23b1c3d92a7e
- #> 4 acer NA NA idigbio 0297d693-d501-4db3-a809-6506815d48b8
- #> 5 acer NA NA idigbio 02fc2171-ed57-4d91-9bba-3ca33392a2aa
- #> 6 acer NA NA idigbio 03212695-4b99-4b72-80f5-9ca369692f5c
- #> 7 acer NA NA idigbio 0399ecc4-1788-4e58-9d1f-270d85777e04
- #> 8 acer NA NA idigbio 03e4d16f-ec63-45ed-9e7d-d970c0c8076f
- #> 9 acer -105.2889 38.9458 idigbio 0411e3b9-65dc-46d0-a4c0-0a6b9cecab27
- #> 10 acer NA NA idigbio 051918c8-f2b8-43c9-92fa-9c66a0711d2e
- #> .. ... ... ... ... ...
- #> Variables not shown: occurrenceid (chr), catalognumber (chr), family
- #> (chr), genus (chr), country (chr), stateprovince (chr), datecollected
- #> (time), collector (chr)
- ```
- ## geo search
- ```r
- bounds <- c(-120, 40, -100, 45)
- occ(from = "idigbio", geometry = bounds, limit = 10)
- #> Searched: idigbio
- #> Occurrences - Found: NA, Returned: 10
- #> Search type: Geometry
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement