Vectorized normalizer that converts supported scholarly identifier values to a canonical form (e.g., removing URL prefixes, labels, or separators).
Normalization is structural: inputs that conform to the expected identifier
syntax are converted to a canonical representation. Inputs that do not match
the required structure yield NA_character_.
For identifier types with checksum algorithms (e.g., ORCID, ISBN, ISSN), normalization does not verify checksum correctness. It only enforces structural plausibility and canonical formatting.
Use is_scholid() to test whether values are fully valid identifiers,
including checksum verification where applicable.
Arguments
- x
A vector of values to normalize.
- type
A single string giving the identifier type. See
scholid_types()for supported values.
Value
A character vector with the same length as x. Invalid or
structurally non-matching inputs yield NA_character_.