clean_query: Converts R booleans to monarch_api values and drops NULL...

View source: R/utils.R

clean_queryR Documentation

Converts R booleans to monarch_api values and drops NULL parameters from query list.

Description

Converts R booleans to monarch_api values and drops NULL parameters from query list.

Usage

clean_query(query)

Arguments

query

List of api query parameters and their values.

Value

list of query paramters and cleaned values.

Examples

clean_query(list(rows = 100,
                 fetch_objects = TRUE,
                 use_compact_associations = FALSE,
                 unselect_evidence = NULL, format = "json"))

charlieccarey/monarchr documentation built on Dec. 12, 2023, 12:57 p.m.