View source: R/01_tree_structure.R
belong | R Documentation |
belong
provides whether each element of set B belong to set A
belong(setA, subB)
setA |
whether the elements in this setA |
subB |
the elements takes from subsetB |
(TBF)
A list of logic values indicates the membership; the length of this list is the same as subB
library(tidyverse) B <- c(2, 3, 4) A <- 3:10 belong(setA = A, subB = B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.