contains: Returning a categorical array (0 and 1) for the condition...

View source: R/contains.R

containsR Documentation

Returning a categorical array (0 and 1) for the condition defined by 'a', 'b' and 'cond'.

Description

Returning a categorical array (0 and 1) for the condition defined by 'a', 'b' and 'cond'.

Usage

contains(x, a, b = NULL, cond = "less")

Arguments

x

is the input array.

a

is the lower border given as a single value or as a vector c(a,b).

b

is the upper border. If 'b' is a character, it is interpreted as 'cond'..

cond

specifies the border condition type:


arnejohannesholmin/sonR documentation built on April 14, 2024, 11:39 p.m.