tidyverts / tsibble

Tidy Temporal Data Frames and Tools
https://tsibble.tidyverts.org
GNU General Public License v3.0
527 stars 49 forks source link

tsibble::difference should NOT cross through keys! #303

Open RESERVED2 opened 8 months ago

RESERVED2 commented 8 months ago

When using the difference function, a TS package should NOT cross through the variables specified in the "key" argument. I know that I can group_by before taking the difference, but if I have to do that myself, it makes me wonder if the function is handling the "index" variable correctly (i.e., what if the data is not sorted by "index"?).