is_in_domain: check whether a value is in a domain

View source: R/is_in_domain.R

is_in_domainR 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))

mosaicCalc documentation built on Sept. 15, 2022, 9:06 a.m.