unique_rows | R Documentation |
Drops duplicated rows
unique_rows(data, cols = NULL, from_last = FALSE, invert = FALSE)
data |
A |
cols |
Columns to compare against; when |
from_last |
When |
invert |
If |
data
will duplicates removes
df <- quick_dfl(
i = 1:4,
a = rep(1:2, 2L),
b = rep("a", 4L),
)
unique_rows(df, 2:3)
unique_rows(df, c("a", "b"), from_last = TRUE, invert = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.