Open geotheory opened 2 years ago
It is officially supported, you can either use the group argument or dplyr::group_by.
Awesome sorry I couldn't find that Inn the documentation.
On Tue, 31 May 2022, 06:16 Edwin Thoen, @.***> wrote:
It is officially supported, you can either use the group argument or dplyr::group_by.
— Reply to this email directly, view it on GitHub https://github.com/EdwinTh/padr/issues/88#issuecomment-1141675977, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJZEFK7NGUVWCLHTJU3VR3VMWODLANCNFSM5XLU6H4A . You are receiving this because you authored the thread.Message ID: @.***>
Also I note the group
argument is evaluated, so you can use e.g. group = "paste(grp1, grp2)"
for multiple variables. Might also be worth documenting :)
Below is the only ref to group_by
I can find for padding. But as you say it's different in allowing group intervals, whereas my usage is directly equivalent to the group
argument..
# applying pad with do, interval is determined individualle for each group
x %>% group_by(id) %>% do(pad(.))
Super useful package btw I use it a lot.
OK I've just seen your blog on this! https://edwinth.github.io/blog/pad.v0.2.0/
I’ll keep this issue open to see if I need to improve the docs.
Is this officially supported or just an unintended bonus?