Learn R Programming

SCoRES (version 0.1.2)

incl_f: Test inclusion relationship between two logical vectors

Description

This function tests whether all TRUE positions in vector A are also TRUE in vector B, which is equivalent to testing whether A is element-wise included in B.

Usage

incl_f(A, B)

Value

A logical value: TRUE if all TRUE values in A are also TRUE in B; otherwise FALSE.

Arguments

A

A logical vector.

B

A logical vector of the same length as A.

Examples

Run this code
# Used internally by scb_to_cs

Run the code above in your browser using DataLab