elems <- c("a", "b", "c", "d")
dom1 <- matrix(c(
"a", "b",
"c", "b",
"b", "d"
), ncol = 2, byrow = TRUE)
dom2 <- matrix(c(
"a", "b",
"b", "c",
"b", "d"
), ncol = 2, byrow = TRUE)
pos1 <- POSet(elements = elems, dom = dom1)
pos2 <- POSet(elements = elems, dom = dom2)
pos_int <- IntersectionPOSet(pos1, pos2)
Run the code above in your browser using DataLab