isBetween: Checks ifa value is between other 2

Description Usage Arguments Details Value Author(s)

View source: R/isBetween.R

Description

Recieve one array and two numbers and find which elements of the array are between the two numbers. Can also recieve three arrays of same length and compares each element of one with other two's same posistion elements to check if the first one is between these two last.

Usage

1
isBetween(x,a,b,...)

Arguments

x

array with elements to check. Don't use List nor Dataframes.

a

value or array with elements to use as lower bound. Don't use List nor Dataframes.

b

value or array with elements to use as upper bound. Don't use List nor Dataframes.

...

array of "nulls". It takes NA, Inf, -Inf, NULL and NaN as "nulls" by default.

Details

All "nulls" in a or b would be replaced by -Inf or Inf respectevely to be compared.

Value

Returns a logical array with TRUE for "i" positions where a<=x[i]<=b (or a[i]<=x[i]<=b[i], if a and b are arrays).

Author(s)

Daniel Fischer


danielfm123/dftools documentation built on July 17, 2021, 1 p.m.