Date and Time Functions for Public Health Purposes

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.


cstime

CRAN status CRAN downloads

Overview

cstime provides date and time functions for public health purposes.

cstime provides convenient and consistent conversion between

  • isoyear
  • isoweek
  • calyear
  • season week

In addition, cstime provides calendar data for reference.

Read the introduction vignette here or run help(package="cstime").

csverse

The csverse is a set of R packages developed to help solve problems that frequently occur when performing disease surveillance.

install.packages("attrib")
install.packages("cs9")
install.packages("csalert")
install.packages("csdata")
install.packages("csdb")
install.packages("csmaps")
install.packages("csstyle")
install.packages("cstidy")
install.packages("cstime")
install.packages("csutil")
install.packages("org")
install.packages("plnr")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cstime")

2025.10.13 by Richard Aubrey White, a year ago


https://www.csids.no/cstime/, https://github.com/csids/cstime


Report a bug at https://github.com/csids/cstime/issues


Browse source code at https://github.com/cran/cstime


Authors: Chi Zhang [aut] , Richard Aubrey White [aut, cre] (ORCID: , CSIDS [cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports data.table, magrittr

Suggests rmarkdown, ggplot2, knitr, testthat, readxl, glue, lubridate


Imported by csalert, cstidy.


See at CRAN