Skip to contents

Extracts the two-digit year component of an ISRC and converts it to a four-digit registration year according to ISO 3901 conventions.

Usage

isrc_registration_year(isrc)

Arguments

isrc

Character vector of ISRC codes.

Value

An integer vector of ISRC registration years, or NA for invalid, malformed, or implausible values.

Details

The ISRC year represents the year the identifier was assigned, not the year the recording was made. For robustness in large-scale data processing, this function applies conservative interpretation rules:

  • values 00–26 are mapped to 2000–2026,

  • values 86–99 are mapped to 1986–1999,

  • all other values return NA.

Input is minimally normalized by removing hyphens and uppercasing. Values that are not exactly 12 characters long after normalization return NA.

See also

Other ISRC utilities: isrc_registrant(), isrc_resolve_registrar()