Description Usage Arguments Details Value Examples
View source: R/f2.rbsb3.code.r
computes and returns the indicator vector of the positions of values with respect to intervals.
1 | belong2interval(x, int)
|
x |
vector of value(s) to be scrutinized. |
int |
series of interval(s) to be considered. Either a
numeric(2) or a matrix with two columns. |
This function is compatible with real infinite values
A matrix with rows associated to the x
values and columns
associated to the int
intervals giving -2,-1,0,1,2
according to whether x
is less than, equal to the lower bound,
inside, equal to the upper bound or greater than the interval.
1 2 3 | rbsb3k("RESET"); # needed only for R checking, to be forgotten
belong2interval(1:5, 1:2);
belong2interval(1:5, matrix(1:10, ncol=2));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.