Retrieve a data frame of objects by their identifiers.
client <- NmdcClient$new()
client$lookup(cls, ids, fields = NULL)
Arguments
- cls
The class type or collection of the objects to retrieve.
Must be a subclass of `nmdcr::NamedThing` or the name of
an NMDC database collection.
- ids
A list of object identifiers.
- fields
A list of fields to include in the result.
Defaults to NULL which includes all fields.
Value
A data frame representing the retrieved objects.