messydates: A Flexible Class for Messy Dates

Contains a set of tools for constructing and coercing into and from the "mdate" class. This date class implements ISO 8601-2:2019(E) and allows regular dates and times to be annotated to express unspecified date or time components, approximate or uncertain components, ranges, and sets of dates. The package therefore retains, represents, and reasons about data and time imprecision, resolving to a single data/time only on demand. This is useful for describing and analysing temporal information, whether historical or recent, where date or time precision may vary.

Getting started

Package details

AuthorJames Hollway [cre, aut, ctb] (IHEID, ORCID: <https://orcid.org/0000-0002-8361-9647>), Henrique Sposito [ctb] (IHEID, ORCID: <https://orcid.org/0000-0003-3420-6085>), Jael Tan [ctb] (IHEID, ORCID: <https://orcid.org/0000-0002-6234-9764>), Nathan Werth [ctb]
MaintainerJames Hollway <james.hollway@graduateinstitute.ch>
LicenseMIT + file LICENSE
Version1.0.0
URL https://globalgov.github.io/messydates/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("messydates")

Try the messydates package in your browser

Any scripts or data that you put into this service are public.

messydates documentation built on July 17, 2026, 1:07 a.m.