Package: messydates 0.5.2
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 to be annotated to express unspecified date components, approximate or uncertain date components, date ranges, and sets of dates. This is useful for describing and analysing temporal information, whether historical or recent, where date precision may vary.
Authors:
messydates_0.5.2.tar.gz
messydates_0.5.2.zip(r-4.5)messydates_0.5.2.zip(r-4.4)messydates_0.5.2.zip(r-4.3)
messydates_0.5.2.tgz(r-4.5-any)messydates_0.5.2.tgz(r-4.4-any)messydates_0.5.2.tgz(r-4.3-any)
messydates_0.5.2.tar.gz(r-4.5-noble)messydates_0.5.2.tar.gz(r-4.4-noble)
messydates_0.5.2.tgz(r-4.4-emscripten)messydates_0.5.2.tgz(r-4.3-emscripten)
messydates.pdf |messydates.html✨
messydates/json (API)
NEWS
# Install 'messydates' in R: |
install.packages('messydates', repos = c('https://globalgov.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/globalgov/messydates/issues
Pkgdown site:https://globalgov.github.io
- battles - Dates of battles in 2001
Last updated 7 days agofrom:0acaaa02a0. Checks:4 OK, 5 NOTE. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 07 2025 |
R-4.5-win | OK | Mar 07 2025 |
R-4.5-mac | OK | Mar 07 2025 |
R-4.5-linux | OK | Mar 07 2025 |
R-4.4-win | NOTE | Mar 07 2025 |
R-4.4-mac | NOTE | Mar 07 2025 |
R-4.4-linux | NOTE | Mar 07 2025 |
R-4.3-win | NOTE | Mar 07 2025 |
R-4.3-mac | NOTE | Mar 07 2025 |
Exports:%><%%>=<%%g%%ge%%intersect%%l%%le%%union%as_approximateas_messydateas_uncertaincontractdayexpandis_approximateis_bceis_elementis_intersectingis_messydateis_preciseis_similaris_subsetis_uncertainmake_messydatemd_intersectmd_multisetmd_unionmdatemessydurationmodalmonthnew_messydatenew_messydurationon_or_afteron_or_beforeprecisionrandomvalidate_messydatevalidate_messydurationvmaxvmeanvmedianvminvmodalvrandomyear
Dependencies:clicpp11dplyrfansigenericsgluelifecyclelubridatemagrittrpillarpkgconfigpurrrR6rlangstringitibbletidyselecttimechangeutf8vctrswithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Dates of battles in 2001 | battles |
A flexible date class for messy dates | class_create new_messydate validate_messydate |
A duration class for mdates | class_duration messyduration messyduration.character messyduration.mdate new_messyduration validate_messyduration |
Composes 'mdate' from multiple variables | class_make make_messydate |
Resolves messy dates into an extrema | coerce_extrema max.mdate min.mdate vmax vmax.mdate vmin vmin.mdate |
Coercion from messy dates | as.Date.mdate as.POSIXct.mdate as.POSIXlt.mdate coerce_from |
Resolves messy dates into a central tendency | coerce_tendency mean.mdate median.mdate modal modal.mdate random random.mdate vmean vmean.mdate vmedian vmedian.mdate vmodal vmodal.mdate vrandom vrandom.mdate |
Coercion from regular date classes to mdate | as_messydate as_messydate.character as_messydate.Date as_messydate.list as_messydate.numeric as_messydate.POSIXct as_messydate.POSIXlt coerce_to mdate |
Annotates dates as censored, uncertain, or approximate | as_approximate as_uncertain component_annotate on_or_after on_or_before |
Extracting components from messy dates | component_extract day month precision year |
Contract lists of dates into messy dates | contract convert_contract |
Expand messy dates to lists of dates | convert_expand expand |
Sequence method for messydates | convert_sequence seq.mdate |
Arithmetic operations for messydates | +.mdate -.mdate operate_arithmetic |
Logical operations on messy dates | <.mdate <=.mdate >.mdate >=.mdate operate_inequalities |
Proportion of messy dates meeting logical test | %><% %><%.mdate %>=<% %>=<%.mdate %g% %g%.mdate %ge% %ge%.mdate %l% %l%.mdate %le% %le%.mdate operate_proportional |
Set operations for messy dates | %intersect% %intersect%.mdate %union% %union%.mdate operate_set |
Logical statements on messy dates | is_approximate is_bce is_intersecting is_messydate is_precise is_similar is_subset is_uncertain operate_statements |