| subset {hset} | R Documentation | 
Binary subset and equality relations
Description
Parametrized subset and equality relations between two "hset" objects.
Usage
hset1.included.to.hset2(hset1, hset2, strictly = FALSE, exactly = FALSE)
hset1 <= hset2 # strictly = FALSE, exactly = FALSE
hset1 >= hset2
hset1 <  hset2 # strictly = TRUE,  exactly = FALSE
hset1 >  hset2
hset1 %=<=% hset2 # strictly = FALSE, exactly = TRUE
hset1 %=>=% hset2
hset1 %=<%  hset2 # strictly = TRUE,  exactly = TRUE
hset1 %=>%  hset2
hsets.are.equal(hset1, hset2)
hset1 == hset2
hset1 != hset2
Arguments
hset1, hset2 | 
 objects of class   | 
strictly, exactly | 
 logical flags indicating which type of inclusion relation is evaluated.  | 
Details
Argument exactly not used if the first two arguments are not generalized.
Value
TRUE is returned if hset1 and hset2 are in the indicated relation, otherwise FALSE is returned.
Examples
# subset and equality relation between sets
X1 <- hset(c(2,3)); X2 <- hset(c(2,3))
hset1.included.to.hset2(X1, X2) # X1 <= X2
hset1.included.to.hset2(X1, X2, strictly = TRUE) # X1 < X2
hsets.are.equal(X1, X2) 
X1 == X2; X1 != X2
# subset relations between multisets
Y1 <- hset(c(2,3), c(1,2))
Y2 <- hset(c(2,3,4), c(1,2,1))
Y3 <- hset(c(2,3,4), c(2,2,1))
hset1.included.to.hset2(Y1, Y2) 
Y1 <= Y2; Y1 >= Y2; Y1 != Y2; Y1 < Y2
hset1.included.to.hset2(Y1, Y2, exactly = TRUE) # Y1 %=<=% Y2
Y1 %=<=% Y3; Y1 %=<% Y2; Y1 %=<% Y3
[Package hset version 0.1.1 Index]