Title: | Date and Time Functions for Public Health Purposes |
---|---|
Description: | Provides easy and consistent time conversion for public health purposes. The time conversion functions provided here are between date, ISO week, ISO yearweek, ISO year, calendar month/year, season, season week. |
Authors: | Chi Zhang [aut, cre] |
Maintainer: | Chi Zhang <[email protected]> |
License: | MIT + file LICENSE |
Version: | 2023.5.3 |
Built: | 2025-02-08 03:21:54 UTC |
Source: | https://github.com/csids/cstime |
Date -> calmonth (character)
date_to_calmonth_c(x = lubridate::today()) ## Default S3 method: date_to_calmonth_c(x) ## S3 method for class 'character' date_to_calmonth_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_calmonth_c(x = lubridate::today())
date_to_calmonth_c(x = lubridate::today()) ## Default S3 method: date_to_calmonth_c(x) ## S3 method for class 'character' date_to_calmonth_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_calmonth_c(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
calmonth ("XX")
date_to_calmonth_c("2021-08-11") date_to_calmonth_c(lubridate::today())
date_to_calmonth_c("2021-08-11") date_to_calmonth_c(lubridate::today())
Date -> calmonth (numeric)
date_to_calmonth_n(x = lubridate::today()) ## Default S3 method: date_to_calmonth_n(x) ## S3 method for class 'character' date_to_calmonth_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_calmonth_n(x = lubridate::today())
date_to_calmonth_n(x = lubridate::today()) ## Default S3 method: date_to_calmonth_n(x) ## S3 method for class 'character' date_to_calmonth_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_calmonth_n(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
calmonth
date_to_calmonth_n("2021-08-11") date_to_calmonth_n(lubridate::today())
date_to_calmonth_n("2021-08-11") date_to_calmonth_n(lubridate::today())
Date -> calyear (character)
date_to_calyear_c(x = lubridate::today()) ## Default S3 method: date_to_calyear_c(x) ## S3 method for class 'character' date_to_calyear_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_calyear_c(x = lubridate::today())
date_to_calyear_c(x = lubridate::today()) ## Default S3 method: date_to_calyear_c(x) ## S3 method for class 'character' date_to_calyear_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_calyear_c(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO year in character
date_to_calyear_c("2021-08-11") date_to_calyear_c(lubridate::today())
date_to_calyear_c("2021-08-11") date_to_calyear_c(lubridate::today())
Date -> calyear (numeric)
date_to_calyear_n(x = lubridate::today()) ## Default S3 method: date_to_calyear_n(x) ## S3 method for class 'character' date_to_calyear_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_calyear_n(x = lubridate::today())
date_to_calyear_n(x = lubridate::today()) ## Default S3 method: date_to_calyear_n(x) ## S3 method for class 'character' date_to_calyear_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_calyear_n(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO year in character
date_to_calyear_n("2021-08-11") date_to_calyear_n(lubridate::today())
date_to_calyear_n("2021-08-11") date_to_calyear_n(lubridate::today())
Date -> calyearmonth (character)
date_to_calyearmonth_c(x = lubridate::today()) ## Default S3 method: date_to_calyearmonth_c(x) ## S3 method for class 'character' date_to_calyearmonth_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_calyearmonth_c(x = lubridate::today())
date_to_calyearmonth_c(x = lubridate::today()) ## Default S3 method: date_to_calyearmonth_c(x) ## S3 method for class 'character' date_to_calyearmonth_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_calyearmonth_c(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
calyearmonth ("YYYY-MXX")
date_to_calyearmonth_c("2021-08-11") date_to_calyearmonth_c(lubridate::today())
date_to_calyearmonth_c("2021-08-11") date_to_calyearmonth_c(lubridate::today())
ISO quarter (character) from Date object
date_to_isoquarter_c(x = lubridate::today()) ## Default S3 method: date_to_isoquarter_c(x) ## S3 method for class 'character' date_to_isoquarter_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoquarter_c(x = lubridate::today())
date_to_isoquarter_c(x = lubridate::today()) ## Default S3 method: date_to_isoquarter_c(x) ## S3 method for class 'character' date_to_isoquarter_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoquarter_c(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO quarter in character
date_to_isoquarter_c("2021-08-11") date_to_isoquarter_c(lubridate::today())
date_to_isoquarter_c("2021-08-11") date_to_isoquarter_c(lubridate::today())
ISO quarter (numeric) from Date object
date_to_isoquarter_n(x = lubridate::today()) ## Default S3 method: date_to_isoquarter_n(x) ## S3 method for class 'character' date_to_isoquarter_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoquarter_n(x = lubridate::today())
date_to_isoquarter_n(x = lubridate::today()) ## Default S3 method: date_to_isoquarter_n(x) ## S3 method for class 'character' date_to_isoquarter_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoquarter_n(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO quarter in numeric
date_to_isoquarter_n("2021-08-11") date_to_isoquarter_n(lubridate::today())
date_to_isoquarter_n("2021-08-11") date_to_isoquarter_n(lubridate::today())
ISO week (character) from Date object
date_to_isoweek_c(x = lubridate::today()) ## Default S3 method: date_to_isoweek_c(x) ## S3 method for class 'character' date_to_isoweek_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoweek_c(x = lubridate::today())
date_to_isoweek_c(x = lubridate::today()) ## Default S3 method: date_to_isoweek_c(x) ## S3 method for class 'character' date_to_isoweek_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoweek_c(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO week in character
date_to_isoweek_c("2021-08-11") date_to_isoweek_c(lubridate::today())
date_to_isoweek_c("2021-08-11") date_to_isoweek_c(lubridate::today())
ISO week (numeric) from Date object
date_to_isoweek_n(x = lubridate::today()) ## Default S3 method: date_to_isoweek_n(x) ## S3 method for class 'character' date_to_isoweek_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoweek_n(x = lubridate::today())
date_to_isoweek_n(x = lubridate::today()) ## Default S3 method: date_to_isoweek_n(x) ## S3 method for class 'character' date_to_isoweek_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoweek_n(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO week in numeric
date_to_isoweek_n("2021-08-11") date_to_isoweek_n(lubridate::today())
date_to_isoweek_n("2021-08-11") date_to_isoweek_n(lubridate::today())
ISO year (character) from Date object
date_to_isoyear_c(x = lubridate::today()) ## Default S3 method: date_to_isoyear_c(x) ## S3 method for class 'character' date_to_isoyear_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoyear_c(x = lubridate::today())
date_to_isoyear_c(x = lubridate::today()) ## Default S3 method: date_to_isoyear_c(x) ## S3 method for class 'character' date_to_isoyear_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoyear_c(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO year in character
date_to_isoyear_c("2021-08-11") date_to_isoyear_c(lubridate::today())
date_to_isoyear_c("2021-08-11") date_to_isoyear_c(lubridate::today())
ISO year (numeric) from Date object
date_to_isoyear_n(x = lubridate::today()) ## Default S3 method: date_to_isoyear_n(x) ## S3 method for class 'character' date_to_isoyear_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoyear_n(x = lubridate::today())
date_to_isoyear_n(x = lubridate::today()) ## Default S3 method: date_to_isoyear_n(x) ## S3 method for class 'character' date_to_isoyear_n(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoyear_n(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO year in numeric
date_to_isoyear_n("2021-08-11") date_to_isoyear_n(lubridate::today())
date_to_isoyear_n("2021-08-11") date_to_isoyear_n(lubridate::today())
ISO year and quarter (character) from Date object
date_to_isoyearquarter_c(x = lubridate::today()) ## Default S3 method: date_to_isoyearquarter_c(x) ## S3 method for class 'character' date_to_isoyearquarter_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoyearquarter_c(x = lubridate::today())
date_to_isoyearquarter_c(x = lubridate::today()) ## Default S3 method: date_to_isoyearquarter_c(x) ## S3 method for class 'character' date_to_isoyearquarter_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoyearquarter_c(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO year and quarter in character
date_to_isoyearquarter_c("2021-08-11") date_to_isoyearquarter_c(lubridate::today())
date_to_isoyearquarter_c("2021-08-11") date_to_isoyearquarter_c(lubridate::today())
ISO year and week (character) from Date object
date_to_isoyearweek_c(x = lubridate::today()) ## Default S3 method: date_to_isoyearweek_c(x) ## S3 method for class 'character' date_to_isoyearweek_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoyearweek_c(x = lubridate::today())
date_to_isoyearweek_c(x = lubridate::today()) ## Default S3 method: date_to_isoyearweek_c(x) ## S3 method for class 'character' date_to_isoyearweek_c(x = lubridate::today()) ## S3 method for class 'Date' date_to_isoyearweek_c(x = lubridate::today())
x |
a Date object or string, in the form of 'yyyy-mm-dd' |
ISO year and week in character
date_to_isoyearweek_c("2021-08-11") date_to_isoyearweek_c(lubridate::today())
date_to_isoyearweek_c("2021-08-11") date_to_isoyearweek_c(lubridate::today())
Date to season.
date_to_season_c(x)
date_to_season_c(x)
x |
date |
Season, e.g. 2020/2021
date_to_season_c(c("2021-01-01", "2021-12-01"))
date_to_season_c(c("2021-01-01", "2021-12-01"))
Date to season week.
date_to_seasonweek_n(x)
date_to_seasonweek_n(x)
x |
date |
Season week in numeric
date_to_seasonweek_n(c("2021-01-01", "2021-12-01"))
date_to_seasonweek_n(c("2021-01-01", "2021-12-01"))
Dates of different days within isoyearweeks
dates_by_isoyearweek
dates_by_isoyearweek
Isoyear.
Isoweek-isoyear.
Date of Monday.
Date of Tuesday.
Date of Wednesday.
Date of Thursday.
Date of Friday.
Date of Saturday.
Date of Sunday.
List of dates from Mon-Fri
List of dates from Sat-Sun
List of dates from Mon-Sun
# Constructing a vector of dates without removing the Date class do.call("c", dates_by_isoyearweek[isoyearweek %in% c("2021-01", "2021-02")]$weekdays)
# Constructing a vector of dates without removing the Date class do.call("c", dates_by_isoyearweek[isoyearweek %in% c("2021-01", "2021-02")]$weekdays)
ISO week to season week (numeric). Season week 1 is natural week 30.
isoweek_to_seasonweek_n(x) ## Default S3 method: isoweek_to_seasonweek_n(x) ## S3 method for class 'character' isoweek_to_seasonweek_n(x) ## S3 method for class 'numeric' isoweek_to_seasonweek_n(x)
isoweek_to_seasonweek_n(x) ## Default S3 method: isoweek_to_seasonweek_n(x) ## S3 method for class 'character' isoweek_to_seasonweek_n(x) ## S3 method for class 'numeric' isoweek_to_seasonweek_n(x)
x |
ISO week in a year (numeric), between 1 and 53. ISO week 53 is season week 23.5 |
Season week in numeric
isoweek_to_seasonweek_n(31)
isoweek_to_seasonweek_n(31)
Returns the last Sunday in the isoyear
isoyear_to_last_date(x) ## Default S3 method: isoyear_to_last_date(x) ## S3 method for class 'character' isoyear_to_last_date(x) ## S3 method for class 'numeric' isoyear_to_last_date(x)
isoyear_to_last_date(x) ## Default S3 method: isoyear_to_last_date(x) ## S3 method for class 'character' isoyear_to_last_date(x) ## S3 method for class 'numeric' isoyear_to_last_date(x)
x |
ISO year, e.g. 2020 |
Date of the Sunday, for the last week in the isoyear
isoyear_to_last_date(c(2019, 2019, 2020, 2021))
isoyear_to_last_date(c(2019, 2019, 2020, 2021))
Returns the last week in the isoyear
isoyear_to_last_isoweek_n(x) ## Default S3 method: isoyear_to_last_isoweek_n(x) ## S3 method for class 'character' isoyear_to_last_isoweek_n(x) ## S3 method for class 'numeric' isoyear_to_last_isoweek_n(x)
isoyear_to_last_isoweek_n(x) ## Default S3 method: isoyear_to_last_isoweek_n(x) ## S3 method for class 'character' isoyear_to_last_isoweek_n(x) ## S3 method for class 'numeric' isoyear_to_last_isoweek_n(x)
x |
ISO year, e.g. 2020 |
ISO week in numeric
isoyear_to_last_isoweek_n(c(2019, 2019, 2020, 2021))
isoyear_to_last_isoweek_n(c(2019, 2019, 2020, 2021))
Returns the last isoyearweek in the isoyear
isoyear_to_last_isoyearweek_c(x) ## Default S3 method: isoyear_to_last_isoyearweek_c(x) ## S3 method for class 'character' isoyear_to_last_isoyearweek_c(x) ## S3 method for class 'numeric' isoyear_to_last_isoyearweek_c(x)
isoyear_to_last_isoyearweek_c(x) ## Default S3 method: isoyear_to_last_isoyearweek_c(x) ## S3 method for class 'character' isoyear_to_last_isoyearweek_c(x) ## S3 method for class 'numeric' isoyear_to_last_isoyearweek_c(x)
x |
ISO year, e.g. 2020 |
ISO year-week in character, of the last ISO year
isoyear_to_last_isoyearweek_c(c(2019, 2019, 2020, 2021))
isoyear_to_last_isoyearweek_c(c(2019, 2019, 2020, 2021))
This function breaks the string connected with '-' into year/quarter
isoyearweek_to_isoquarter_c(x) ## Default S3 method: isoyearweek_to_isoquarter_c(x) ## S3 method for class 'character' isoyearweek_to_isoquarter_c(x)
isoyearweek_to_isoquarter_c(x) ## Default S3 method: isoyearweek_to_isoquarter_c(x) ## S3 method for class 'character' isoyearweek_to_isoquarter_c(x)
x |
Year-week, e.g. "2020-19" for 19th week in 2020 |
ISO quarter in character
isoyearweek_to_isoquarter_c('2020-19')
isoyearweek_to_isoquarter_c('2020-19')
This function breaks the string connected with '-' into year/quarter
isoyearweek_to_isoquarter_n(x) ## Default S3 method: isoyearweek_to_isoquarter_n(x) ## S3 method for class 'character' isoyearweek_to_isoquarter_n(x)
isoyearweek_to_isoquarter_n(x) ## Default S3 method: isoyearweek_to_isoquarter_n(x) ## S3 method for class 'character' isoyearweek_to_isoquarter_n(x)
x |
Year-week, e.g. "2020-19" for 19th week in 2020 |
ISO quarter in numeric
isoyearweek_to_isoquarter_n('2020-19')
isoyearweek_to_isoquarter_n('2020-19')
This function breaks the string connected with '-' into year/week
isoyearweek_to_isoweek_c(x) ## Default S3 method: isoyearweek_to_isoweek_c(x) ## S3 method for class 'character' isoyearweek_to_isoweek_c(x)
isoyearweek_to_isoweek_c(x) ## Default S3 method: isoyearweek_to_isoweek_c(x) ## S3 method for class 'character' isoyearweek_to_isoweek_c(x)
x |
Year-week, e.g. "2020-19" for 19th week in 2020 |
ISO week in character
isoyearweek_to_isoweek_c('2020-19')
isoyearweek_to_isoweek_c('2020-19')
This function breaks the string connected with '-' into year/week
isoyearweek_to_isoweek_n(x) ## Default S3 method: isoyearweek_to_isoweek_n(x) ## S3 method for class 'character' isoyearweek_to_isoweek_n(x)
isoyearweek_to_isoweek_n(x) ## Default S3 method: isoyearweek_to_isoweek_n(x) ## S3 method for class 'character' isoyearweek_to_isoweek_n(x)
x |
Year-week, e.g. "2020-19" for 19th week in 2020 |
ISO week in numeric
isoyearweek_to_isoweek_n('2020-19')
isoyearweek_to_isoweek_n('2020-19')
This function breaks the string connected with '-' into year/week
isoyearweek_to_isoyear_c(x) ## Default S3 method: isoyearweek_to_isoyear_c(x) ## S3 method for class 'character' isoyearweek_to_isoyear_c(x)
isoyearweek_to_isoyear_c(x) ## Default S3 method: isoyearweek_to_isoyear_c(x) ## S3 method for class 'character' isoyearweek_to_isoyear_c(x)
x |
Year-week, e.g. "2020-19" for 19th week in 2020 |
ISO year in character
isoyearweek_to_isoyear_c('2020-10')
isoyearweek_to_isoyear_c('2020-10')
This function breaks the string connected with '-' into year/week
isoyearweek_to_isoyear_n(x) ## Default S3 method: isoyearweek_to_isoyear_n(x) ## S3 method for class 'character' isoyearweek_to_isoyear_n(x)
isoyearweek_to_isoyear_n(x) ## Default S3 method: isoyearweek_to_isoyear_n(x) ## S3 method for class 'character' isoyearweek_to_isoyear_n(x)
x |
Year-week, e.g. "2020-19" for 19th week in 2020 |
ISO year in numeric
isoyearweek_to_isoyear_n('2020-10')
isoyearweek_to_isoyear_n('2020-10')
ISO yearweek to ISO yearquarter (character)
isoyearweek_to_isoyearquarter_c(x) ## Default S3 method: isoyearweek_to_isoyearquarter_c(x) ## S3 method for class 'character' isoyearweek_to_isoyearquarter_c(x)
isoyearweek_to_isoyearquarter_c(x) ## Default S3 method: isoyearweek_to_isoyearquarter_c(x) ## S3 method for class 'character' isoyearweek_to_isoyearquarter_c(x)
x |
Year-week, e.g. "2020-19" for 19th week in 2020 |
ISO yearquarter in character
isoyearweek_to_isoyearquarter_c('2020-19')
isoyearweek_to_isoyearquarter_c('2020-19')
Returns the Sunday in the isoyearweek
isoyearweek_to_last_date(x) ## Default S3 method: isoyearweek_to_last_date(x) ## S3 method for class 'character' isoyearweek_to_last_date(x)
isoyearweek_to_last_date(x) ## Default S3 method: isoyearweek_to_last_date(x) ## S3 method for class 'character' isoyearweek_to_last_date(x)
x |
ISO yearweek, e.g. "2020-19" for 19th week in 2020 |
Date of Sunday of that isoyearweek
isoyearweek_to_last_date(c("2019-19", "2020-01"))
isoyearweek_to_last_date(c("2019-19", "2020-01"))
ISO yearweek to season.
isoyearweek_to_season_c(x) ## Default S3 method: isoyearweek_to_season_c(x) ## S3 method for class 'character' isoyearweek_to_season_c(x)
isoyearweek_to_season_c(x) ## Default S3 method: isoyearweek_to_season_c(x) ## S3 method for class 'character' isoyearweek_to_season_c(x)
x |
isoyearweek, connected with '-' |
Season, e.g. 2020/2021
isoyearweek_to_season_c(c("2021-01", "2021-50"))
isoyearweek_to_season_c(c("2021-01", "2021-50"))
ISO yearweek to season week (numeric). Season week 1 is natural week 30.
isoyearweek_to_seasonweek_n(x)
isoyearweek_to_seasonweek_n(x)
x |
ISO yearweek |
Season week in numeric
isoyearweek_to_seasonweek_n(c("2021-01"))
isoyearweek_to_seasonweek_n(c("2021-01"))
keep_sundays
keep_sundays(dates, format = "Uke isoweek_c-1/isoweek_c", keep_delete = TRUE)
keep_sundays(dates, format = "Uke isoweek_c-1/isoweek_c", keep_delete = TRUE)
dates |
dates (later) |
format |
format (later) |
keep_delete |
keep_delete (later) |
Label: delete or not
keep_sundays_and_latest_date
keep_sundays_and_latest_date( dates, format = "Uke isoweek_c-1/isoweek_c", keep_delete = TRUE )
keep_sundays_and_latest_date( dates, format = "Uke isoweek_c-1/isoweek_c", keep_delete = TRUE )
dates |
dates (later) |
format |
format (later) |
keep_delete |
keep_delete (later) |
Date with level: delete or not
keep_sundays_and_latest_date_internal
keep_sundays_and_latest_date_internal( dates, format = "Uke isoweek_c-1/isoweek_c", keep_delete = TRUE, keep_latest_date = TRUE )
keep_sundays_and_latest_date_internal( dates, format = "Uke isoweek_c-1/isoweek_c", keep_delete = TRUE, keep_latest_date = TRUE )
dates |
dates (later) |
format |
format (later) |
keep_delete |
keep_delet (later) |
keep_latest_date |
keep_latest_date (later) |
Norwegian workdays and holidays by date
nor_workdays_by_date
nor_workdays_by_date
Date.
Integer. 1 = Monday, 7 = Sunday
Integer. 1 between Monday and Friday, 0 between Saturday and Sunday
Integer. 1 between Saturday and Sunday, 0 between Monday and Friday
Integer. 1 if public holiday (helligdag), 0 if not public holiday
Integer. 1 if public holiday (helligdag) or sat_to_sun==1, 0 otherwise
Integer. 1 if freeday==0, 0 if freeday==1
Norwegian workdays and holidays by isoyearweek
nor_workdays_by_isoyearweek
nor_workdays_by_isoyearweek
YYYY-WW
The proportion of the days within the isoyearweek that are public holidays
The proportion of the days within the isoyearweek that are either public holidays or Saturday/Sunday
1 minus freeday
Current time as character
now_c(format = "%Y-%m-%d %H:%M:%S")
now_c(format = "%Y-%m-%d %H:%M:%S")
format |
Defaults to %Y-%m-%d %H:%M:%S |
Returns the last Sunday in the season
season_to_last_date(x) ## Default S3 method: season_to_last_date(x) ## S3 method for class 'character' season_to_last_date(x)
season_to_last_date(x) ## Default S3 method: season_to_last_date(x) ## S3 method for class 'character' season_to_last_date(x)
x |
Season, e.g. "2019/2020" |
Date of last Sunday of that season
isoyearweek_to_last_date(c("2019-19", "2020-01"))
isoyearweek_to_last_date(c("2019-19", "2020-01"))
Season week to ISO week (character). Season week 1 is ISO week 30.
seasonweek_to_isoweek_c(x) ## Default S3 method: seasonweek_to_isoweek_c(x) ## S3 method for class 'numeric' seasonweek_to_isoweek_c(x)
seasonweek_to_isoweek_c(x) ## Default S3 method: seasonweek_to_isoweek_c(x) ## S3 method for class 'numeric' seasonweek_to_isoweek_c(x)
x |
Season week in a year (numeric), between 1 and 52 |
ISO week in character
seasonweek_to_isoweek_c(31)
seasonweek_to_isoweek_c(31)
Season week to ISO week (numeric). Season week 1 is ISO week 30.
seasonweek_to_isoweek_n(x) ## Default S3 method: seasonweek_to_isoweek_n(x) ## S3 method for class 'numeric' seasonweek_to_isoweek_n(x)
seasonweek_to_isoweek_n(x) ## Default S3 method: seasonweek_to_isoweek_n(x) ## S3 method for class 'numeric' seasonweek_to_isoweek_n(x)
x |
Season week in a year, between 1 and 52 |
ISO week in numeric
seasonweek_to_isoweek_n(31)
seasonweek_to_isoweek_n(31)