matrix.matches {Rmdr}R Documentation

matrix matches function

Description

matrix.matches returns a matrix of total matches of its first argument in its second. Each row of mat1 is matched against mat2 rows.

Usage

matrix.matches(mat1,mat2)

Arguments

mat1 matrix: the values to be matched.
mat2 matrix: the values to be matched against.

Value

An integer matrix giving the number of matches. Each row gives the sum of matches.

Author(s)

Mounir Aout

Examples

x1<-matrix(sample(0:2,10,replace=TRUE),5,2)
x2<-matrix(sample(0:2,24,replace=TRUE),12,2)
res<-matrix.matches(x1,x2)

[Package Rmdr version 0.1-1 Index]