BoulderCodeHub / RWDataPlyr

R package to read and manipulate data from RiverWareTM
3 stars 5 forks source link

Formalize rw_slot class and handle irregular data #88

Open rabutler-usbr opened 6 years ago

rabutler-usbr commented 6 years ago

In #83, we updated the data returned by rw_get_slot() to have a timespan attribute. We should turn this into a formal class.

Also, we should re-think how to handle summary functions of non-regular monthly data. To fix #83, we just don't allow it. We might consider something similar to how the rw_tbl aggregations need a certain number of months to apply the summary. For this, we'd also need to store all the timestamps. Perhaps xts objects are appropriate.

Finally, we might start considering how to treat daily data.

See #77