Skip to contents

Maps a season week number back to its ISO week, returned as a number. This is the inverse of isoweek_to_seasonweek_n().

Usage

seasonweek_to_isoweek_n(x)

# Default S3 method
seasonweek_to_isoweek_n(x)

# S3 method for class 'numeric'
seasonweek_to_isoweek_n(x)

Arguments

x

Season week as a number between 1 and 52.

Value

ISO week as an integer vector (1 to 53).

Details

Season week 1 corresponds to ISO week 35, season week 2 to ISO week 36, and so on, wrapping around the new year.

See also

seasonweek_to_isoweek_c() returns the same week as a zero-padded string, and isoweek_to_seasonweek_n() converts back. vignette("cstime", package = "cstime") and vignette("season", package = "cstime"), which both run this function.

Examples

seasonweek_to_isoweek_n(1)
#> [1] 35
seasonweek_to_isoweek_n(c(31, 52))
#> [1] 13 34