Code
res <- mtcars %>% group_by(vs) %>% select(mpg)
Message <message>
Adding missing grouping variables: `vs`
Code
x <- select(dfg, a)
Message <message>
Adding missing grouping variables: `g`
Code
df %>% group_by(unknown)
Error <rlang_error>
Must group by variables found in `.data`.
x Column `unknown` is not found.
Code
df %>% ungroup(x)
Error <rlib_error_dots_nonempty>
`...` is not empty.
i These dots only exist to allow future extensions and should be empty.
x We detected these problematic arguments:
* `..1`
i Did you misspecify an argument?
Code
df %>% group_by(x, y) %>% ungroup(z)
Error <vctrs_error_subscript_oob>
Can't subset columns that don't exist.
x Column `z` doesn't exist.
Code
df %>% group_by(z = a + 1)
Error <rlang_error>
Problem adding computed columns in `group_by()`.
x Problem with `mutate()` column `z`.
i `z = a + 1`.
x object 'a' not found
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.