outside_range {drugprepr}R Documentation

Do values fall outside a specified 'plausible' range?

Description

A utility function for indicating if elements of a vector are implausible.

Usage

outside_range(x, lower, upper, open = TRUE)

Arguments

x

numeric vector

lower

minimum plausible value

upper

maximum plausible value

open

logical. If TRUE, values exactly equal to lower or upper are also considered implausible

Details

Though the function between already exists, it is not vectorised over the bounds.


[Package drugprepr version 0.0.4 Index]