Learn R Programming

MDR (version 1.2)

compare: Function for internal use only ...

Description

This function is for internal use only; it counts the number of matches of an individual data vector with the rows of a target matrix, and is called by the function mdr

Usage

compare(mat, vec, k)

Arguments

mat
target matrix
vec
vector to be matched
k
length of vector

Value

scalar, the total number of matches

See Also

mdr, mdr.cv, mdr.3WS