isoyearweek_to_isoquarter_n: ISO yearweek to quarter (numeric)

View source: R/conversion_date_isoweek_isoyear.R

isoyearweek_to_isoquarter_nR Documentation

ISO yearweek to quarter (numeric)

Description

This function breaks the string connected with '-' into year/quarter

Usage

isoyearweek_to_isoquarter_n(x)

## Default S3 method:
isoyearweek_to_isoquarter_n(x)

## S3 method for class 'character'
isoyearweek_to_isoquarter_n(x)

Arguments

x

Year-week, e.g. "2020-19" for 19th week in 2020

Value

ISO quarter in numeric

Examples

isoyearweek_to_isoquarter_n('2020-19')

cstime documentation built on Nov. 5, 2025, 5:47 p.m.