distinct | R Documentation |
Analogous function for distinct
in dplyr
distinct(.data, ..., .keep_all = FALSE)
.data |
data.table |
... |
Optional variables to use when determining uniqueness. If there are multiple rows for a given combination of inputs, only the first row will be preserved. If omitted, will use all variables. |
.keep_all |
If |
data.table
distinct
a = as.data.table(iris)
b = as.data.table(mtcars)
a %>% distinct(Species)
b %>% distinct(cyl,vs,.keep_all = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.