
ISO yearweek to ISO year (numeric)
Source:R/conversion_date_isoweek_isoyear.R
isoyearweek_to_isoyear_n.RdExtracts the ISO year from an ISO yearweek string and returns it as a number.
Usage
isoyearweek_to_isoyear_n(x)
# Default S3 method
isoyearweek_to_isoyear_n(x)
# S3 method for class 'character'
isoyearweek_to_isoyear_n(x)Details
The input is split on the hyphen into year and week, and the year part is returned. The week part is ignored.
See also
vignette("date_conversion", package = "cstime"), which runs this
function.
Other ISO yearweek-to-number converters:
isoyearweek_to_isoquarter_n(),
isoyearweek_to_isoweek_n(),
isoyearweek_to_seasonweek_n()