any_duplicated_rows | R Documentation |
anyDuplicated()
Implemented similarly to RowGroups()
.
any_duplicated_rows(x, cols = names(x))
x |
A data frame, tibble, or data.table. |
cols |
Columns to check for duplicates. |
With data.table
input and the data.table package available,
anyDuplicated.data.table()
will be used.
Index of the first duplicate row, if any; otherwise 0.
z <- SSBtoolsData("power10to2")
head(z, 12)
tail(z)
any_duplicated_rows(z, c("A", "B"))
any_duplicated_rows(z, c("a", "A", "B"))
any_duplicated_rows(z, c("a", "A", "b"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.