-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hey,
This is a really cool package! Feature suggestion: add groups as used by dplyr.
Let's say I would have:
tbl1 <- tibble(
x = rep(LETTERS[1:6], 3),
type = paste("Type", c(rep(1, 6), rep(2, 6), rep(3, 6))),
value = round(runif(18) * 500)
)And then use with your addin:
tbl1 %>%
group_by(x) %>%
summarise(n = n())This would give me 1 View, namely:
# Tab name: 1. Summarise
x n
1 A 3
2 B 3
3 C 3
4 D 3
5 E 3
6 F 3But it would be great if you would support groups with the dplyr functions group_size and group_vars:
# Tab name: 1. Group by
group_var min_size max_size
1 x 3 3
# Tab name: 2. Summarise
x n
1 A 3
2 B 3
3 C 3
4 D 3
5 E 3
6 F 3It this example n() is equal to group_size, but that isn't always the case, obviously. Maybe not the best example then 😄
Metadata
Metadata
Assignees
Labels
No labels