mdates_duration
class that introduces methods to annotate a duration or period with representations of its uncertainty<
, >
, <=
, >=
) (thanks @WerthPADOH)%l%
%le%
, %g%
, %ge%
, %><%
, %>=<%
)mdate()
for as_messydate()
%intersect%
and %union%
)is_element()
by is_subset()
for clarity and consistencymake_messydates()
function to also construct ranges of datesas_messydate()
functioncontract()
function to 'expand' dates before 'contracting' themexpand()
function to handle, and properly convert, date objects that are not 'mdate'as_messydates()
for explicit date format conversion, if necessarybattles
data by adding 'parties' variablemreport()
function to properly report on data containing 'mdate' variablesexpand()
functionmdate
{skimr}
template for mdate
classas_messydate()
allowing users to choose component order of ambiguous datesas_messydate()
re-orders 6 digit date components if necessaryas_messydate()
to also extract dates from text stringsis_precise()
function that provides a logical test for precise datesexpand()
to allow for the expansion of incomplete date ranges and sets of dates{messydates}
packagemessydt
objectsadd()
and subtract()
helper functions for arithmetic operationsexpand()
functionexpand()
to manage negative datesexpand_negative_dates()
helper function for expanding ranges of negative datesmessydt
objects to Date
to manage negative datesnegative_dates()
helper function to coerce negative messydt
datescompact_negative_dates()
helper function to compact negative date rangesis.sequence()
as a helper function to check if dates are a rangeinterleave()
function{messydates}
from Github{messydates}
from Githubmake_messydate()
on_or_before()
on_or_after()
as_approximate()
as_uncertain()
(includes discrimination between month uncertainty and day and month uncertainty)as_messydate()
by adding zero padding for month, day or yearresequence()
to work consistently with messydate objectsexpand()
function to expand imprecise, unspecified, approximate, uncertain, and negative dates according to approximate ranges and added testsprecision()
to return the lengths of expanded datesmedian()
in resolve family of functions to work with changes to expand()
expand()
contract()
precision()
coerce_from_messydate()
messydt
class in DESCRIPTION fileas_messydate()
functionsexpand()
function{messydates}
packageDESCRIPTION
fileR
folderLICENSE
fileNAMESPACE
fileNEWS
fileREADME
files.github
folder and filestests
folder and filesmessydt
class which follows the latest ISO 8601 (2019) standardsas_messydate()
function to coerce from date objects to messydateas_messydate()
standardises date order, separators and ambiguityas.Date.messydt()
for coercing to date classas.POSIXct.messydt()
for coercing to POSIXct classas.POSIXlt.messydt()
for coercing to POSIXlt classexpand()
function for expanding ranged and uncertain datesmin.messydt()
to get minimum value from expanded rangemax.messydt()
to get maximum value from expanded rangemedian.messydt()
to get median value from expanded rangemean.messydt()
to get mean value from expanded rangemodal.messydt()
to get mode value from expanded rangecontract()
function for contracting expanded datesyear()
to extract year from datemonth()
to extract month from dateday()
to extract day from datemake_messydate()
function to get messy dates from multiple columnsmd_intersect()
to find intersection of sets of messy datesmd_union()
to find union of sets of messy datesmd_multiset()
to join two sets of messy datesis_messydate()
to test for messydt classis_intersecting()
to test if dates intersectis_element()
to test for multiple elements in datesis_similar()
to test for similarities in datesàs_messydate()
functioncontract()
functionexpand()
functionmake_messydate()
functionAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.