sp_lit_names: Extract scientific names from articles

Description Usage Arguments Details Value Examples

View source: R/sp_lit_names.R

Description

Depends on non-CRAN package namext

Usage

1
sp_lit_names(x, progress = TRUE, ...)

Arguments

x

An object of class sp_lit_text or sp_lit_text_one

progress

(logical) print a progress bar. default: TRUE

...

arguments passed on to namext::name_extract()

Details

make sure to install gnfinder first https://github.com/gnames/gnfinder

Value

a data.frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(spocc)
taxa <- c('Pinus contorta', 'Accipiter striatus')
res <- occ(query=taxa, from = c("gbif", "bison"), limit = 15)
w <- sp_lit_meta(x = res, from = c("pubmed", "bhl"))
out <- sp_lit_text(x = w[[1]], from = c("pubmed", "bhl"))
sp_lit_names(x = out$bhl$OcrText)
sp_lit_names(x = out$bhl)

## End(Not run)

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