Vectorized predicate that tests whether values are valid scholarly identifiers of a given supported type.
For identifier types with checksum algorithms (e.g., ORCID, ROR, ISNI, ISBN,
ISSN), checksum correctness is verified. The same checksum rules apply to
normalize_scholid().
The main difference from normalization is input form: is_scholid()
expects values in canonical (or near-canonical) form. Wrapped values
such as URLs or prefixed labels should be normalized first with
normalize_scholid().
Inputs that are NA yield NA. Non-matching values return FALSE.
Arguments
- x
A vector of values to test.
- type
A single string giving the identifier type. See
scholid_types()for supported values.
Value
A logical vector of the same length as x, indicating whether
each element is a valid identifier of the specified type.