Package: messydates 1.1.1
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:
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
- battles - Dates of battles in 2001
Last updated from:bccfaf43a9. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 157 | ||
| source / vignettes | OK | 197 | ||
| linux-release | OK | 134 | ||
| macos-release | OK | 119 | ||
| macos-oldrel | OK | 125 | ||
| windows-devel | OK | 146 | ||
| windows-release | OK | 116 | ||
| windows-oldrel | OK | 115 | ||
| wasm-release | OK | 129 |
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 page | Topics |
|---|---|
| Dates of battles in 2001 | battles |
| A flexible date class for messy dates | class_mdate format.mdate make_messydate new_messydate print.mdate validate_messydate |
| A flexible duration class for messy durations | class_mduration make_messyduration make_messyduration.character make_messyduration.mdate new_messyduration print.mduration validate_messyduration |
| Basic vector methods for 'mdate' objects | c.mdate class_methods duplicated.mdate rep.mdate unique.mdate [.mdate [<-.mdate [[.mdate [[<-.mdate |
| Coercion from 'mdate' to common date classes | as.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 approximate | approximate component_annotate on_or_after on_or_before uncertain |
| Extracting components from messy dates | component_extract hour.mdate mday.mdate minute.mdate month.mdate precision precision.mdate second.mdate tz.mdate year.mdate |
| 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 |
| Diagnose unparseable dates | md_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 dates | is_approximate is_bce is_intersecting is_messydate is_precise is_similar is_subset is_uncertain operate_statements |
| Resolves messy dates into an extrema | max.mdate min.mdate resolve_extrema vmax vmax.mdate vmin vmin.mdate |
| Resolves messy dates into a central tendency | mean.mdate median.mdate modal modal.mdate random random.mdate resolve_tendency vmean vmean.mdate vmedian vmedian.mdate vmodal vmodal.mdate vrandom vrandom.mdate |