distinct.dtplyr_step | R Documentation |
This is a method for the dplyr distinct()
generic. It is translated to
data.table::unique.data.table()
.
## S3 method for class 'dtplyr_step'
distinct(.data, ..., .keep_all = FALSE)
.data |
A |
... |
< |
.keep_all |
If |
library(dplyr, warn.conflicts = FALSE)
df <- lazy_dt(data.frame(
x = sample(10, 100, replace = TRUE),
y = sample(10, 100, replace = TRUE)
))
df %>% distinct(x)
df %>% distinct(x, y)
df %>% distinct(x, .keep_all = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.