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

Can't get it constant #91

Open
Steviey opened this issue Dec 20, 2022 · 1 comment
Open

Can't get it constant #91

Steviey opened this issue Dec 20, 2022 · 1 comment

Comments

@Steviey
Copy link

Steviey commented Dec 20, 2022

I read the docs on:
https://gogonzo.github.io/runner/articles/apply_any_r_function.html

... but I can't get it.

Is it possible to keep the window size constant while using an index?
For example this gives me varying window sizes:
do.call(runner,list(x=df,k=2,idx='id',f=doThatShit,simplify=FALSE,na_pad=FALSE))
while....
do.call(runner,list(x=df,k=2,f=doThatShit,simplify=FALSE,na_pad=FALSE))
gives me a constant window, but not in the right interval.
I would need an offset of 5 instead of 1 step forward, or exactly 5 days without spreading dates across windows. How would we do this?

@Steviey Steviey changed the title Can't get it constant window size Can't get it constant Dec 20, 2022
@Steviey Steviey closed this as completed Dec 20, 2022
@Steviey Steviey reopened this Dec 20, 2022
@Steviey
Copy link
Author

Steviey commented Dec 20, 2022

Could it be, that an index has to be unique?

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

No branches or pull requests

1 participant