hashMat: Assigns a hash value to a two-column matrix.

View source: R/hashMat.R

hashMatR Documentation

Assigns a hash value to a two-column matrix.

Description

The hashMat() function assigns hash numbers to the two-column sample matrices for the purpose of providing identical test results regardless of the order in which the input data is passed to the distdiffr() or grouped_distdiffr() functions.

Usage

hashMat(mat)

Arguments

mat

A two column matrix of bivariate observations.

Value

A numeric hash value

Examples

data(iris)
sample1 <- as.matrix(iris[iris$Species == "virginica", 1:2])
sample2 <- as.matrix(iris[iris$Species == "versicolor", 1:2])

hashMat(sample1)
hashMat(sample2)

EricMcKinney77/distdiffR documentation built on April 24, 2022, 9:03 p.m.