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

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"))
#> $rows #> [1] 100 #> #> $fetch_objects #> [1] "true" #> #> $use_compact_associations #> [1] "false" #> #> $format #> [1] "json" #>