Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ezmiller opened this issue Jul 20, 2021 · 0 comments
Open

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

ezmiller opened this issue Jul 20, 2021 · 0 comments
Labels
question Further information is requested

Comments

@ezmiller
Copy link
Contributor

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant