splice {dembase} | R Documentation

## Splice concordances.

### Description

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

### Usage

    splice(...)

### 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

    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)

[Package dembase version 0.0.0.119 Index]