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

Description Usage Arguments Details Value Examples

View source: R/rbsa3.code.r

Description

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

Usage

1
2
 
  interv7belonging(x,int,monitor=rbsa0$monitor$v) 

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.

monitor

List providing the monitoring constants, see rbsa0$monitor$v to know the contents.

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
 
  interv7belonging(1:5,1:2); 
  interv7belonging(1:5,matrix(1:10,ncol=2)); 

rbsa documentation built on May 2, 2019, 6:07 p.m.