Learn R Programming

container (version 0.3.0)

setS3binOp: Binary set operators

Description

Binary operators for Set objects.

Usage

# S3 method for Set
+(s1, s2)

# S3 method for Set /(s1, s2)

# S3 method for Set -(s1, s2)

# S3 method for Set ==(s1, s2)

# S3 method for Set <(s1, s2)

# S3 method for Set >(s1, s2)

Arguments

s1

Set object

s2

Set object

Value

union of both sets

intersection of both sets

set-difference of both sets

TRUE if both sets are equal, else FALSE

TRUE if s1 is subset of s2, else FALSE

TRUE if s1 is superset of s2, else FALSE