Concordance: Create a concordance.

Description Usage Arguments Details Value See Also Examples

View source: R/Concordance-generator.R

Description

Create an object of class "Concordance".

Usage

1
Concordance(object)

Arguments

object

A matrix or data frame with two columns and unique colnames.

Details

object should contain two classifications, one in each column. The names of the classifications are taken from colnames(object). Duplicate rows are deleted. The classifications must have a many-to-one or one-to-one relationship.

Value

An object of class "Concordance".

See Also

"Concordance", classifications

Examples

1
2
3
4
5
6
7
8
x <- cbind(c1 = c("a", "b", "c"), c2 = c("x", "y", "x"))
x <- Concordance(x)
classifications(x)

x <- cbind(c1 = c("a", "b", "c"), c2 = c("x", "y", "x"))
x <- Concordance(x)
x
classifications(x)

StatisticsNZ/dembase documentation built on Dec. 25, 2021, 4:49 p.m.