Check if the tidytable is grouped

is_grouped_df(x)

Arguments

x

An object

Examples

df <- data.table(
  a = 1:3,
  b = c("a", "a", "b")
)

df %>%
  group_by(b) %>%
  is_grouped_df()
#> [1] TRUE