globalgov / messydates

R package for Extended Date/Time Format (EDTF)
https://globalgov.github.io/messydates
Other
15 stars 1 forks source link

Updated `expand()` and coercion from "messydt" functions to manage negative dates. Arithmetic functions for operations with "messydt" objects were also added. #42

Closed henriquesposito closed 2 years ago

henriquesposito commented 2 years ago

Description

These patch changes update how expand functions manage negative dates and how negative dates are coerced into dates. As well, arithmetic functions for working with "messydt" were added.

Package

Functions

Checklist:

codecov[bot] commented 2 years ago

Codecov Report

Merging #42 (b950543) into main (d6bcebd) will increase coverage by 3.59%. The diff coverage is 98.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
+ Coverage   89.82%   93.42%   +3.59%     
==========================================
  Files          12       13       +1     
  Lines         403      517     +114     
==========================================
+ Hits          362      483     +121     
+ Misses         41       34       -7     
Impacted Files Coverage Δ
R/resequence.R 96.96% <ø> (ø)
R/coerce_from_messydate.R 91.66% <87.50%> (-8.34%) :arrow_down:
R/coerce_to_messydate.R 97.46% <100.00%> (+0.13%) :arrow_up:
R/contract.R 100.00% <100.00%> (ø)
R/expand.R 100.00% <100.00%> (ø)
R/operate.R 100.00% <100.00%> (ø)
R/resolve.R 93.47% <100.00%> (+20.75%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2576d15...b950543. Read the comment docs.