splice: Splice concordances.

Description Usage Arguments Details Value See Also Examples

Description

Combine two or more concordances to form a new concordance, via a rbind-like operation.

Usage

1

Arguments

...

Objects of class Concordance.

Details

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.

Value

An object of class Concordance.

See Also

chain combines concordances via a merge-like operation.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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)

StatisticsNZ/classconc documentation built on May 9, 2019, 2:03 p.m.