Extract identifiers of a single supported type from free text.
The result is a list with one element per input element. Each element is a
character vector of matches (possibly length 0). NA inputs yield an empty
character vector.
Matches are returned as extracted identifier tokens from the text.
Surrounding prose punctuation or markup fragments may be removed where
necessary to isolate the identifier. Use normalize_scholid() to convert
identifiers to canonical form.
Arguments
- text
A character vector of text.
- type
A single string giving the identifier type. See
scholid_types()for supported values.