gn_parse_tidy: gn_parse_tidy

Description Usage Arguments Details Value Examples

View source: R/gn_parse_tidy.R

Description

extract names using gnparser into a tidy tibble

Usage

1
gn_parse_tidy(x, threads = 4, batch_size = NULL, ignore_tags = FALSE)

Arguments

x

(character) vector of scientific names. required

threads

(integer/numeric) number of threads to run. CPU's threads number is the default. default: 4

batch_size

(integer/numeric) maximum number of names in a batch send for processing. default: NULL

ignore_tags

(logical) ignore HTML entities and tags when parsing. default: FALSE

Details

This function focuses on a data.frame result that's easy to munge downstream - note that this function does not do additional details as does gn_parse().

Value

a data.frame

Examples

1
2
3
4
5
6
trys <- function(x) try(x, silent=TRUE)
if (interactive()) {
x <- c("Quadrella steyermarkii (Standl.) Iltis & Cornejo",
  "Parus major Linnaeus, 1788", "Helianthus annuus var. texanus")
trys(gn_parse_tidy(x))
}

rgnparser documentation built on Jan. 26, 2021, 1:07 a.m.