Make week number object from year and week.
make_weeknumber(year = 2000, week = 1)
year | Year, coerced to numeric. |
---|---|
week | Week, coerced to numeric. |
Input arguments are recycled to their common size. Invalid weeks result in
NA
.
make_weeknumber(2000:2001, 4:5)#> <weeknumber[2]> #> [1] 2000-W04 2001-W05make_weeknumber(2019:2020, 53)#> <weeknumber[2]> #> [1] <NA> 2020-W53