logicaltests: Logical tests

logicaltestsR Documentation

Logical tests

Description

Logical tests

Usage

allj(.data)

anyj(.data)

Arguments

.data

input. This can be JSON input, or an object of class jqr that has JSON and query params combined, which is passed from function to function when using the jqr DSL.

Examples

# any
'[true, false]' %>% anyj
'[false, false]' %>% anyj
'[]' %>% anyj

# all
'[true, false]' %>% allj
'[true, true]' %>% allj
'[]' %>% allj

## many JSON inputs
'[true, false] [true, true] [false, false]' %>% anyj
'[true, false] [true, true] [false, false]' %>% allj

ropensci/jqr documentation built on Jan. 19, 2024, 8:33 p.m.