joshuaulrich / xts

Extensible time series class that provides uniform handling of many R time series classes by extending zoo.
http://joshuaulrich.github.io/xts/
GNU General Public License v2.0
220 stars 71 forks source link

tests for relational operators tclass #323

Closed philaris closed 4 years ago

philaris commented 4 years ago

These tests guarantee that application of a relational operator on an xts time series does not change its time class (tclass).

See #322.

TomAndrews commented 4 years ago

Thanks for doing this!

The other place I found that's broken is here: https://github.com/joshuaulrich/xts/blob/96b4798b082ece2eaabd1e7479bb9db80ff41275/R/xts.R#L214

Reclass should preserve the tclass of the thing that it's matching to.