rt_setsubset: returns TRUE if 'set1' is a subset of 'set2'. Returns 'FALSE'...

View source: R/comparisons.R

rt_setsubsetR Documentation

returns TRUE if 'set1' is a subset of 'set2'. Returns 'FALSE' if either 'set1' or 'set2' is 'NULL' (even if they are both NULL). The reason for this is because it is used to test sets, and more often then not, NULL values when testing sets is indicative of a bug.

Description

returns TRUE if 'set1' is a subset of 'set2'. Returns 'FALSE' if either 'set1' or 'set2' is 'NULL' (even if they are both NULL). The reason for this is because it is used to test sets, and more often then not, NULL values when testing sets is indicative of a bug.

Usage

rt_setsubset(set1, set2)

Arguments

set1

the set that is a subset

set2

the set that is the superset


shane-kercheval/rtools documentation built on July 7, 2022, 8:31 a.m.