We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
And provide an informative error for the slice() method.
slice()
The text was updated successfully, but these errors were encountered:
Look at #64 for implementation ideas.
Sorry, something went wrong.
slice_head()
slice_tail()
slice_min()
slice_max()
slice_sample()
All also work on groups, so I think will be translated into filter() calls.
filter()
# slice_min(x, n = 2) lazy_frame(x = 1, g = 2) %>% group_by(g) %>% window_order(x) %>% filter(min_rank() <= 2) # slice_min(x, prop = 0.2) lazy_frame(x = 1, g = 2) %>% group_by(g) %>% window_order(x) %>% filter(cume_dist() <= 0.2) # slice_min(x, n = 2, with_ties = FALSE) lazy_frame(x = 1, g = 2) %>% group_by(g) %>% window_order(x) %>% filter(row_number() <= 2) # slice_min(x, prop = 0.2, with_ties = FALSE) # error # slice_max(x, n = 2) lazy_frame(x = 1, g = 2) %>% group_by(g) %>% window_order(desc(x)) %>% filter(min_rank() <= 2) # slice_random(x, n = 2) lazy_frame(x = 1, g = 2) %>% group_by(g) %>% window_order(RANDOM()) %>% filter(min_rank() <= 2)
c4072d7
No branches or pull requests
And provide an informative error for the
slice()
method.The text was updated successfully, but these errors were encountered: