part: Partition Sets of Two Sets

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
part(ms1, ms2)

Arguments

ms1

A numeric vector. The first set

ms2

A numeric vector. The second set

Value

A list consisting of the three partition sets.

Author(s)

Kwang Woo Ahn and Kung-Sik Chan

See Also

setdiff, intersect, and partition

Examples

1
2
3
ms1<-c(1,3,7,9,10)
ms2<-c(7,9,10,12,13)
part(ms1,ms2) 

BGSIMD documentation built on May 2, 2019, 5:12 a.m.