merge_entities: Combine and deduplicate entity datasets

View source: R/utils.R

merge_entitiesR Documentation

Combine and deduplicate entity datasets

Description

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


LBDiscover documentation built on June 16, 2025, 5:09 p.m.