Package: messydates 0.5.4

James Hollway

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:James Hollway [cre, aut, ctb], Henrique Sposito [ctb], Jael Tan [ctb], Nathan Werth [ctb]

messydates_0.5.4.tar.gz
messydates_0.5.4.zip(r-4.7)messydates_0.5.4.zip(r-4.6)messydates_0.5.4.zip(r-4.5)
messydates_0.5.4.tgz(r-4.6-any)messydates_0.5.4.tgz(r-4.5-any)
messydates_0.5.4.tar.gz(r-4.7-any)messydates_0.5.4.tar.gz(r-4.6-any)
messydates_0.5.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
messydates/json (API)

# 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/docs site:https://globalgov.github.io

Datasets:

On CRAN:

Conda:

dates

4.58 score 16 stars 12 scripts 366 downloads 46 exports 20 dependencies

Last updated from:851677d9a6. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK200
source / vignettesOK196
linux-release-x86_64OK162
macos-release-arm64OK104
macos-oldrel-arm64OK114
windows-develOK97
windows-releaseOK83
windows-oldrelOK89
wasm-releaseOK109

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:clicpp11dplyrgenericsgluelifecyclelubridatemagrittrpillarpkgconfigpurrrR6rlangstringitibbletidyselecttimechangeutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Dates of battles in 2001battles
A flexible date class for messy datesclass_create new_messydate validate_messydate
A duration class for mdatesclass_duration messyduration messyduration.character messyduration.mdate new_messyduration validate_messyduration
Composes 'mdate' from multiple variablesclass_make make_messydate
Resolves messy dates into an extremacoerce_extrema max.mdate min.mdate vmax vmax.mdate vmin vmin.mdate
Coercion from messy datesas.Date.mdate as.POSIXct.mdate as.POSIXlt.mdate coerce_from
Resolves messy dates into a central tendencycoerce_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 mdateas_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 approximateas_approximate as_uncertain component_annotate on_or_after on_or_before
Extracting components from messy datescomponent_extract day month precision precision.mdate year
Contract lists of dates into messy datescontract convert_contract
Expand messy dates to lists of datesconvert_expand expand
Sequence method for messydatesconvert_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 datesis_approximate is_bce is_intersecting is_messydate is_precise is_similar is_subset is_uncertain operate_statements