Vectorized normalizer that converts supported scholarly identifier values to a canonical form (e.g., removing URL prefixes, labels, or separators).
Normalization requires that inputs match the expected identifier structure.
For identifier types with checksum algorithms, normalization also requires
checksum-valid values. Inputs that do not meet these requirements yield
NA_character_.
Normalized outputs are canonical, type-specific representations of valid identifiers.
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, checksum-
failing, or structurally non-matching inputs yield NA_character_.