R/homoP.R

Defines functions homoP

Documented in homoP

homoP <- function(sequence, num){
	rleSeq <- rle(as.vector(as.character(sequence)))

	length(which(rleSeq$lengths > num))
}

Try the spiderDev package in your browser

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

spiderDev documentation built on May 2, 2019, 5:23 p.m.