powered by
anyDuplicated()
Implemented similarly to RowGroups().
RowGroups()
any_duplicated_rows(x, cols = names(x))
Index of the first duplicate row, if any; otherwise 0.
A data frame, tibble, or data.table.
Columns to check for duplicates.
With data.table input and the data.table package available, anyDuplicated.data.table() will be used.
data.table
anyDuplicated.data.table()
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"))
Run the code above in your browser using DataLab