Skip to content

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

@RESERVED2

Description

@RESERVED2

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"?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions