Description Usage Arguments Details
View source: R/create_matrices.R
Creates an agreement matrix by comparing either the row or the columns of a matrix
1 | gen_agreemat(x, dim = c("row", "col"), missing = 99L)
|
x |
an integer matrix |
dim |
what dimensions to compare; must be either "row" or "column"; defaults to "row" |
missing |
value that should be treated as missing (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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.