R/dataDetectPval2NA.R

Defines functions dataDetectPval2NA

Documented in dataDetectPval2NA

dataDetectPval2NA <-
function(data, detect.pval, threshold){

	indexNA <- which(detect.pval > threshold, arr.ind=TRUE)

	data[indexNA] <- NA
					
	return(data)
}
schalkwyk/wateRmelon documentation built on April 15, 2024, 12:06 p.m.