Description Usage Arguments Value Examples
#' @description
This function checks whether concepts share terms and keeps only the common terms.
IMPORTANT NOTE: Concepts should be deduplicated before disambiguated!!
| 1 | con_disambig2(df, col.term, col.conid)
 | 
| df | A dataframe containing terms and corresponding concept ids | 
| col.term | The name of the column containing the terms as character string | 
| col.conid | The name of the column containing the concept ids as character string | 
A list containing (a) the dataframe without ambigious concepts and (b) a dataframe with the removed terms
| 1 2 3 4 5 6 | library(tpfuns)
test <- tibble::tibble(
con_id = c( 1,   1,   1,   2,   2,   3,   3,   4,   4 ,  5,   5,   5,   6,   6 ),
term   = c("a", "c", "b", "a", "b", "d", "e", "e", "f", "e", "f", "g", "b", "a"))
con_disambig2(test, "term", "con_id")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.