Skip to contents

Runs one of the controlled-value parsers (see clb_parsers()) over a vector of strings, e.g. to normalise rank abbreviations, country names, dates or license strings.

Usage

clb_parse(type, q, .raw = FALSE)

Arguments

type

Parser type, one of clb_parsers() (e.g. "rank", "country", "date", "language", "license", "nomcode", "taxonomicstatus").

q

A character vector of values to parse.

.raw

Return the raw parsed JSON instead of a tibble?

Value

A tibble with columns original, parsed and parsable, one row per input value.

See also

Examples

if (FALSE) { # \dontrun{
clb_parse("rank", c("spec", "fam.", "ssp"))
clb_parse("country", c("Deutschland", "The Netherlands"))
} # }