part {BGSIMD} | R Documentation |
The function computes the three partition sets of two sets. That is, given two sets A and B, the function returns the set of A-B, AB and B-A where AB is the intersection of A and B, A-B=the intersection of A and B complement.
part(ms1, ms2)
ms1 |
A numeric vector. The first set |
ms2 |
A numeric vector. The second set |
A list consisting of the three partition sets.
Kwang Woo Ahn and Kung-Sik Chan
setdiff
, intersect
, and partition
ms1<-c(1,3,7,9,10) ms2<-c(7,9,10,12,13) part(ms1,ms2)