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)
}

Try the wateRmelon package in your browser

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

wateRmelon documentation built on Nov. 8, 2020, 7:47 p.m.