This function combines custom and standard entity datasets, handling the case where one or both might be empty, and removes duplicates.
merge_entities(
custom_entities,
standard_entities,
primary_term,
primary_type = "disease",
verbose = TRUE
)A data frame of combined entities
Data frame of custom entities (can be NULL)
Data frame of standard entities (can be NULL)
The primary term of interest
The entity type of the primary term (default: "disease")
Logical; if TRUE, print status messages (default: TRUE)