Skip to content

Will we support a notion of keys like they have in R's tsibble? #44

@ezmiller

Description

@ezmiller

R's tsibble library identifies keys on a dataset. keys are the columns, in addition to the syntax, that if grouped by in addition to the time index will produce unique entries for each time observation.

A good example is a dataset containing daily stock price values for multiple stocks. In addition to the time index, they :symbol column would be a key. If you group by the index and the key, you get one daily stock price for each symbol. So even though there are duplicate time elements in the index, they are actually unique when combined with the key(s) and so the index remains valid.

We already have one function that could use keys: adjust-interval. We had support for it in a previous PR, but it will possibly be removed temporarily in #43 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions