Depends on non-CRAN package namext

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()

Value

a data.frame

Details

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

Examples

if (FALSE) { 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) }