R/aa.VLF.convert.matrix.R

Defines functions aa.VLF.convert.matrix

Documented in aa.VLF.convert.matrix

aa.VLF.convert.matrix <-
function(seq.matrix, freq, p, seqlength){
	converted <- matrix(NA, nrow = nrow(freq), ncol = seqlength+2)
	converted[,1:2] = seq.matrix[,1:2]
	for(i in 1:seqlength){
		converted[which(freq[,i] < p), i+2] <- freq[which(freq[,i] < p), i]
	}
	return(converted)
}

Try the VLF package in your browser

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

VLF documentation built on Aug. 18, 2022, 5:06 p.m.