intersection | R Documentation |
Given two posets X
and Y
on the same set, intersection
returns the poset Z defined by a < b
in Z
if and only if a < b
in X
and a < b
in Y
.
intersection(x, y) x %it% y
x |
an S4 object of class |
y |
an S4 object of class |
an S4 object of class Rcpp_POSet
, see poset
for details
davey2002introductionPOSetR
poset
dom <- matrix(c( "a", "b", "c", "b", "b", "d" ), ncol = 2, byrow = TRUE) p <- poset(x = dom) plot(p) dom <- matrix(c( "a", "b", "c", "b", "d", "b" ), ncol = 2, byrow = TRUE) q <- poset(x = dom) plot(q) plot(p %it% q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.