Description Usage Arguments Details Value
Creates an agreement matrix by comparing either the row or the columns of a matrix
1 | .agreement_mat(x, dim, missing = 999999L)
|
x |
an integer matrix |
dim |
dimension across which agreement should be calculated (0 = columns, 1 = rows) |
missing |
integer indicating missing value (defaults to 99) |
Let X be a n\times k matrix. If comparison across rows is demended (i.e., dim = "row"
, the function returns a n\times n matrix where the (i,j)th element is the number of columns on which the ith and the jth row agree by having the same value.
returns the agreement matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.