sp_lit_meta: Get literature metadata based on a species list

Description Usage Arguments Details Value Examples

View source: R/sp_lit_meta.R

Description

Get literature metadata based on a species list

Usage

1
sp_lit_meta(x, from = "pubmed", limit = 25, progress = TRUE)

Arguments

x

input

from

(character) source to search for literature. one of more of pubmed, bhl. default: pubmed

limit

(integer/numeric) number of literature search results to return

progress

(logical) print a progress bar. default: TRUE

Details

See spplit_auth for authentication

Value

a list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
# occurrence data
library(spocc)
geom <- 'POLYGON((-124.07 41.48,-119.99 41.48,-119.99 35.57,-124.07 35.57,-124.07 41.48))'
res <- occ(geometry = geom, from = "gbif", limit = 15)

library(spocc)
taxa <- c('Pinus contorta', 'Accipiter striatus')
res <- occ(query=taxa, from = c("gbif", "bison"), limit = 15)
res
res$gbif
res$bison

# get literature metadata
x <- sp_lit_meta(x = res, from = c("pubmed", "bhl"))
x
x$gbif
x$gbif$pubmed
x$gbif$bhl
x$bison
x$bison$pubmed
x$bison$bhl

## End(Not run)

ropenscilabs/spplit documentation built on Sept. 29, 2020, 3:05 a.m.