belong2interval: checks if a series of values belong to a series of intervals

Description Usage Arguments Details Value Examples

View source: R/f2.rbsb3.code.r

Description

computes and returns the indicator vector of the positions of values with respect to intervals.

Usage

1

Arguments

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.
Empty intervals (numeric(0)= are not admitted.

Details

This function is compatible with real infinite values

Value

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.

Examples

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

rbsb documentation built on May 2, 2019, 4:41 p.m.

Related to belong2interval in rbsb...