is_in_domain {mosaicCalc}R Documentation

check whether a value is in a domain

Description

A convenience function to see if a value is inside (or on the boundaries of) a domain or a set of domain segments. In the case of multiple segments, the check is whether val is within any of them.

Usage

is_in_domain(val, domain, ...)

Arguments

val

the values to be checked

domain

the domain

...

additional domains

Examples

is_in_domain(1:10, domain(x=5.5:8.5), domain(x=1:2))
is_in_domain(mtcars, domain(mpg=15:20, wt=2:4.5), domain(mpg=25:28))

[Package mosaicCalc version 0.6.4 Index]