Package: messydates 1.1.1

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 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.

Authors:James Hollway [cre, aut, ctb], Henrique Sposito [ctb], Jael Tan [ctb], Nathan Werth [ctb]

messydates_1.1.1.tar.gz
messydates_1.1.1.zip(r-4.7-any)messydates_1.1.1.zip(r-4.6-any)messydates_1.1.1.zip(r-4.5-any)
messydates_1.1.1.tgz(r-4.6-any)messydates_1.1.1.tgz(r-4.5-any)
messydates_1.1.1.tar.gz(r-4.7-any)messydates_1.1.1.tar.gz(r-4.6-any)
messydates_1.1.1.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

5.97 score 16 stars 2 packages 13 scripts 569 downloads 56 exports 5 dependencies

Last updated from:bccfaf43a9. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK157
source / vignettesOK197
linux-releaseOK134
macos-releaseOK119
macos-oldrelOK125
windows-develOK146
windows-releaseOK116
windows-oldrelOK115
wasm-releaseOK129

Exports:%><%%>=<%%g%%ge%%intersect%%l%%le%%union%approximateas_approximateas_datetimeas_messydateas_uncertaincontractdayexpandhouris_approximateis_bceis_elementis_intersectingis_messydateis_preciseis_similaris_subsetis_uncertainmake_messydatemake_messydurationmd_intersectmd_multisetmd_problemsmd_unionmdatemdaymessydurationminutemodalmonthnew_messydatenew_messydurationon_or_afteron_or_beforeprecisionrandomsecondtzuncertainvalidate_messydatevalidate_messydurationvmaxvmeanvmedianvminvmodalvrandomyear

Dependencies:cpp11genericslubridatestringitimechange

Readme and manuals

Help Manual

Help pageTopics
Dates of battles in 2001battles
A flexible date class for messy datesclass_mdate format.mdate make_messydate new_messydate print.mdate validate_messydate
A flexible duration class for messy durationsclass_mduration make_messyduration make_messyduration.character make_messyduration.mdate new_messyduration print.mduration validate_messyduration
Basic vector methods for 'mdate' objectsc.mdate class_methods duplicated.mdate rep.mdate unique.mdate [.mdate [<-.mdate [[.mdate [[<-.mdate
Coercion from 'mdate' to common date classesas.data.frame.mdate as.Date.mdate as.double.mdate as.list.mdate as.POSIXct.mdate as.POSIXlt.mdate as_datetime,mdate-method coerce_from
Coercion from common date classes to 'mdate'as_messydate as_messydate.character as_messydate.Date as_messydate.factor as_messydate.list as_messydate.numeric as_messydate.POSIXct as_messydate.POSIXlt coerce_to mdate
Annotates dates as censored, uncertain, or approximateapproximate component_annotate on_or_after on_or_before uncertain
Extracting components from messy datescomponent_extract hour.mdate mday.mdate minute.mdate month.mdate precision precision.mdate second.mdate tz.mdate year.mdate
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
Diagnose unparseable datesmd_problems
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
Resolves messy dates into an extremamax.mdate min.mdate resolve_extrema vmax vmax.mdate vmin vmin.mdate
Resolves messy dates into a central tendencymean.mdate median.mdate modal modal.mdate random random.mdate resolve_tendency vmean vmean.mdate vmedian vmedian.mdate vmodal vmodal.mdate vrandom vrandom.mdate