| splice {dembase} | R Documentation |
Combine two or more concordances to form a new concordance, via
a rbind-like operation.
splice(...)
... |
Objects of class |
Concordances that are to be spliced together must have classifications with the same names. The result of the splicing must also be a many-to-one or one-to-one relationship between classifications. Duplicate rows are deleted.
An object of class Concordance.
chain combines concordances via a
merge-like operation.
x <- cbind(c1 = c("a", "b", "c"), c2 = c("q", "r", "r"))
x <- Concordance(x)
y <- cbind(c1 = c("e", "f"), c2 = c("s", "t"))
y <- Concordance(y)
x
y
splice(x, y)
x <- cbind(c1 = c("a", "b", "c"), c2 = c("q", "r", "r"))
x <- Concordance(x)
y <- cbind(c2 = c("r", "s"), c1 = c("c", "d"))
y <- Concordance(y)
x
y ## columns in different order, and rows overlap with 'x'
splice(x, y)