Closed henriquesposito closed 2 years ago
A first attempt to make the functions more cohesive has been added.
Functions are a bit more concise and cohesive now and tests were added for both db functions.
For now I have left the messydates related portions to reduce precision for matching commented out, though they work for year only dates (might need to be expanded if we choose to do so). As I said elsewhere, the more I look into this the more I think reducing precision might actually defeat the purposes of messydates...
The code in the function not only needs to be made more concise but also, since
dbplot()
anddbcomp()
are very similar,dbcomp()
should be adapted so that it is called withindbplot()
to avoid unnecessary code duplication across functions.As well, with the new HUGGO and AIGOO structure, make sure the function does not return unnecessary hand-coded (already checked/worked on) obs in HUGGO to facilitate work on where it matters.