count_dis | R Documentation |
This is a pretty simple wrapper around dplyr::distinct()
. I tend to do this
pipe chain alot when working with data with multiple row per subjects. Making
this for my own convenience more than anything else.
count_dis(.data, ..., .keep_all = FALSE)
.data |
a tbl |
... |
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 |
A numeric value
library(dplyr)
library(tibble)
df <- tibble::tibble(
x = sample(10, 100, rep = TRUE),
y = sample(10, 100, rep = TRUE)
)
count_dis(df, x, y)
count_dis(df, x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.