checkIdenticalPoints: Check Identical Points

Description Arguments Author(s) Examples

Description

This function takes an input matrix and checks if, for each group, the frequency of identical data points is greater than what is specified by the identicalPointsThreshold argumet. If the number of identical points are less than the identicalPointsThreshold the function returns TRUE and, otherwise, returns FALSE.

Arguments

mat

a matrix from makeMatrix function.

groups

a character vector from makeGroups function.

dim

Which dimension of the matrix to check.

identicalPointsThreshold

Sets the threshold of identical points.

Author(s)

Jason Serviss

Examples

1
2
3
4
5
6
7
mat <- makeMatrix(x=c(0,1), y=c(0,1), dim=2, points=10, seed=11)
groups <- makeGroups(mat, names=c("grp1", "grp2"))
checkIdenticalPoints(mat, groups, 1, 2)

mat <- list(rbind(mat[[1]], mat[[1]][20,], mat[[1]][20,]))
groups <- makeGroups(mat, c("g1", "g2"))
checkIdenticalPoints(mat, groups, 1, 2)

GranderLab/ClusterSignificanceExtras documentation built on May 6, 2019, 6:30 p.m.