dot-agreement_mat: Create agreement matrix

Description Usage Arguments Details Value

Description

Creates an agreement matrix by comparing either the row or the columns of a matrix

Usage

1
.agreement_mat(x, dim, missing = 999999L)

Arguments

x

an integer matrix

dim

dimension across which agreement should be calculated (0 = columns, 1 = rows)

missing

integer indicating missing value (defaults to 99)

Details

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.

Value

returns the agreement matrix


baruuum/btoolbox documentation built on Aug. 17, 2020, 1:29 a.m.