Skip to contents

This function merges related objects of the specified class into the specified data frame by finding related objects for the specified IDs and merging them into the data frame.

client <- NmdcClient$new()
client$merge_related(data, id_column, cls, fields = NULL)

Arguments

data

The data frame to merge related objects into.

id_column

The name of the column containing the object IDs.

cls

The type of objects to merge into the data frame.

fields

A list of fields to include in the result. Defaults to NULL which includes all fields.

Value

A data frame containing the merged data.