Code
df %>% distinct(aa, x)
Error <rlang_error>
`distinct()` must use existing variables.
x `aa` not found in `.data`.
Code
df %>% distinct(aa, bb)
Error <rlang_error>
`distinct()` must use existing variables.
x `aa` not found in `.data`.
x `bb` not found in `.data`.
Code
df %>% distinct(.data$aa)
Error <rlang_error>
`distinct()` must use existing variables.
x `aa` not found in `.data`.
Code
df %>% distinct(y = a + 1)
Error <rlang_error>
Problem adding computed columns in `distinct()`.
x Problem with `mutate()` column `y`.
i `y = 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.