R/anyReps.R

Defines functions `anyReps`

`anyReps` <-
function(X) {
        X = as.matrix(X)
	for (i in 1:(dim(X)[1]-1)) {
		for (j in (i+1):dim(X)[1]) {
			if (identical(X[i,], X[j,])) return (TRUE)
		}
	}
	return (FALSE)
}

Try the mlegp package in your browser

Any scripts or data that you put into this service are public.

mlegp documentation built on March 18, 2022, 5:29 p.m.