Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uproll_any() and roll_all() #14
Comments
|
Thanks, that's an interesting suggestion. Just so I understand what you’re thinking, here’s an example of how I’d approach it in base R:
If so, I can see it fitting within my framework and existing arguments: |
|
Yeah, exactly. |
|
I have added both
Also, the performance is significantly faster. Let me know if you have any other feedback. |
|
Looks great, thanks! |
Would you consider extending roll to also think about logical vectors?
roll_any()androll_all()are admittedly esoteric, but can sometimes be useful, and would complete the matrix of summary functions at https://github.com/r-lib/vctrs/issues/9