is.prob | R Documentation |
Checks if x
is in an opened or closed interval between min
and max
.
The default is set as such, that the chosen interval is an interval of (0,1)
.
For example, in the case of x
being a probability.
is.prob(x, open = TRUE, min = 0, max = 1)
is_prob_interval(x, open = TRUE, min = 0, max = 1)
is_prob(x, open = TRUE, min = 0, max = 1)
in_range(x, open = TRUE, min = 0, max = 1)
x |
numeric: values to check |
open |
logical: checks if the left and right borders are open or closed (default: |
min |
numeric: minimal value (default: |
max |
numeric: maximal value (default: |
A logical vector with the same length as x
.
is.prob(runif(1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.