searchCondition: Function to construct search conditions to be 'rbind'ed into...

Description Usage Arguments Value Author(s) Examples

View source: R/searchCondition.R

Description

Function to construct search conditions to be 'rbind'ed into one dataframe to be passed as conditions argument to any search function

Usage

1
searchCondition(subject, verb, object)

Arguments

subject

the field you are conditioning on e.g. 'location_identifiers'

verb

the operator you want to use to connect 'subject' and 'object' e.g. includes, between.. A full list of all operators available can be obtained with the call 'getOperators()'

object

the values of the condition as a CHARACTER VECTOR e.g. c('germany', 'france')

Value

a data.frame row that can be easily 'rbind'ed to other search conditions to be passed in a searchForXXX(search_conditions) call to search for certain entities

Author(s)

Layla Rohkohl, byehity@gmail.com

Examples

1
searchCondition(subject = "location_identifiers", verb = "includes", object = c("germany", "france"))

Lyrohk/cruncher documentation built on Dec. 17, 2021, 1:17 a.m.