belong: Title: Provide each elements from set B belongs to set...

View source: R/01_tree_structure.R

belongR Documentation

Title: Provide each elements from set B belongs to set membership of set A

Description

belong provides whether each element of set B belong to set A

Usage

belong(setA, subB)

Arguments

setA

whether the elements in this setA

subB

the elements takes from subsetB

Details

(TBF)

Value

A list of logic values indicates the membership; the length of this list is the same as subB

Examples

library(tidyverse)
B <- c(2, 3, 4)
A <- 3:10
belong(setA = A, subB = B)

Goodgolden/LDTM documentation built on May 25, 2022, 5:25 p.m.