Code
df %>% summarise(dummy = n_distinct(a, b))
Condition
Error in `summarise()`:
! `n_distinct()` needs exactly one argument besides the optional `na.rm`
Code
df %>% summarise(dummy = n_distinct(a, na.rm = "b"))
Condition
Error in `summarise()`:
! Invalid value for `na.rm` in call to `n_distinct()`
Code
df %>% mutate(dummy = n_distinct(a))
Condition
Error in `mutate()`:
! `n_distinct()` not supported in window functions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.