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 Aug. 13, 2024, 9:52 a.m.