ExistsOperator: Create an Existence Search Operator

View source: R/TextOperators.R

ExistsOperatorR Documentation

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)

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.

Value

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

Examples

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

rPDBapi documentation built on Oct. 19, 2024, 5:08 p.m.