Description Usage Arguments Value Examples
View source: R/flag_duplicate_id.R
Flags articles in a dataframe that are duplicated and has the same identifier
| 1 | flag_duplicate_id(df, keys = NULL)
 | 
| df | a data frame with potential duplicates | 
| keys | a character vector of identifier variables in the data frame | 
The original data frame is returned with a new column "duplicate_by_id", that can be 0 or 1
| 1 2 3 4 5 6 | # Show all articles with duplicated ids
library(dplyr)
merge_sources(workaholism_psychinfo, workaholism_pubmed, workaholism_scopus,
              .renames = c("journal" = "publication")) %>%
 flag_duplicate_id(keys = c("psyid", "pmid", "doi", "eid", "sid")) %>%
 filter(duplicate_by_id == 1)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.