Skip to contents

Returns the last week in the isoyear

Usage

isoyear_to_last_isoweek_n(x)

# S3 method for default
isoyear_to_last_isoweek_n(x)

# S3 method for character
isoyear_to_last_isoweek_n(x)

# S3 method for numeric
isoyear_to_last_isoweek_n(x)

Arguments

x

ISO year, e.g. 2020

Value

ISO week in numeric

Examples

isoyear_to_last_isoweek_n(c(2019, 2019, 2020, 2021))
#> [1] 52 52 53 52