Date and Time Functions for Public Health Purposes


[Up] [Top]

Documentation for package ‘cstime’ version 2022.11.22

Help Pages

dates_by_isoyearweek Dates of different days within isoyearweeks
date_to_calmonth_c Date -> calmonth (character)
date_to_calmonth_n Date -> calmonth (numeric)
date_to_calyearmonth_c Date -> calyearmonth (character)
date_to_calyear_c Date -> calyear (character)
date_to_calyear_n Date -> calyear (numeric)
date_to_isoweek_c ISO week (character) from Date object
date_to_isoweek_n ISO week (numeric) from Date object
date_to_isoyearweek_c ISO year and week (character) from Date object
date_to_isoyear_c ISO year (character) from Date object
date_to_isoyear_n ISO year (numeric) from Date object
date_to_seasonweek_n Date to season week.
date_to_season_c Date to season.
isoweek_to_seasonweek_n ISO week to season week (numeric). Season week 1 is natural week 30.
isoyearweek_to_isoweek_c ISO yearweek to week (character)
isoyearweek_to_isoweek_n ISO yearweek to week (numeric)
isoyearweek_to_isoyear_c ISO yearweek to year (character)
isoyearweek_to_isoyear_n ISO yearweek to year (numeric)
isoyearweek_to_last_date Last date in ISO yearweek
isoyearweek_to_seasonweek_n ISO yearweek to season week (numeric). Season week 1 is natural week 30.
isoyearweek_to_season_c ISO yearweek to season.
isoyear_to_last_date Last Sunday in ISO year
isoyear_to_last_isoweek_n Last ISO week (numeric) in ISO year
isoyear_to_last_isoyearweek_c Last ISO yearweek (character) in ISO year
keep_sundays keep_sundays
keep_sundays_and_latest_date keep_sundays_and_latest_date
keep_sundays_and_latest_date_internal keep_sundays_and_latest_date_internal
nor_workdays_by_date Norwegian workdays and holidays by date
nor_workdays_by_isoyearweek Norwegian workdays and holidays by isoyearweek
seasonweek_to_isoweek_c Season week to ISO week (character). Season week 1 is ISO week 30.
seasonweek_to_isoweek_n Season week to ISO week (numeric). Season week 1 is ISO week 30.