The mdates_duration class introduces methods that annotate a duration or
period with representations of its uncertainty.
Usage
new_messyduration(x = character())
messyduration(x, approx_range = 0)
validate_messyduration(x, approx_range = 0)
# S3 method for character
messyduration(x, approx_range = 0)
# S3 method for mdate
messyduration(x, approx_range = 0)
Value
Object of class description
Arguments
x
An mdate variable with ranges.
approx_range
Range to expand approximate dates, in days.
If 3, for example, adds 3 days; if -3, removes 3 days from both sides.
Details
Most R packages handle duration and periods as exact time or date intervals.
However, this is not possible for 'messy' dates where uncertainty or
approximation might be present.
The mdates_duration class accounts for uncertainty and approximation
in mdate objects to return their duration as a range of possible dates.