Skip to contents

This function combines custom and standard entity datasets, handling the case where one or both might be empty, and removes duplicates.

Usage

merge_entities(
  custom_entities,
  standard_entities,
  primary_term,
  primary_type = "disease",
  verbose = TRUE
)

Arguments

custom_entities

Data frame of custom entities (can be NULL)

standard_entities

Data frame of standard entities (can be NULL)

primary_term

The primary term of interest

primary_type

The entity type of the primary term (default: "disease")

verbose

Logical; if TRUE, print status messages (default: TRUE)

Value

A data frame of combined entities