Learn R Programming

rPDBapi (version 2.1.1)

ExistsOperator: Create an Existence Search Operator

Description

Constructs an `ExistsOperator` object for search operations to check the existence of an attribute. This operator is useful in queries where you need to ensure that a certain attribute is present within the entries being searched, regardless of its value.

Usage

ExistsOperator(attribute)

Value

An object of class `ExistsOperator` that can be used in search queries to retrieve entries where the specified attribute exists.

Arguments

attribute

The attribute whose existence is to be checked. This should be the field within the RCSB PDB that you want to ensure is present in the search results.

Examples

Run this code
# Search for entries where a specific attribute exists
operator <- ExistsOperator(attribute = "rcsb_primary_citation.doi")
print(operator)

Run the code above in your browser using DataLab