Description Usage Arguments Value Examples
Return a vector of the duplicate keys within a dataframe. Filters out NA values before determining duplicates.
1 |
df |
The dataframe to check for duplicate keys. |
... |
The column(s) to check for duplicates. |
A tibble containing the duplicate keys and a count of the number of duplicates.
1 2 3 4 5 6 7 8 | ## dataframe to convert
key <- c(1000L, 2000L, 3000L, 4000L, 1000L)
amount <- c("46.41", "118.11", "84.68", "493.59", "51.10")
test_df <- data.frame(key, amount)
## which keys are duplicated
duplicate_keys(df = test_df, "key")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.