Description Usage Arguments Value Examples
Test if scalar is in intervall
1 2 3 | is.scalar_in(left, right)
is.scalar_in01(x)
|
left, right |
arguments passed to |
x |
R object to be tested, most likely a numeric vector of length one
(other formats are allowed but will always return |
is.scalar_in01
returns TRUE
if x
is an atomic vector of
length one and 0 <= as_numeric(x) <= 1
.
is.scalar_in
return a function similair to is.scalar_in01
but with
specified boundaries.
1 2 3 4 5 6 | is.scalar_in01(.5) # TRUE
is.scalar_in01(5) # FALSE
is.scalar_in01(seq(0,1,.1)) # FALSE
is_scalar_in09 <- is.scalar_in(0,9)
is_scalar_in09(5) # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.