search for: selectmark

Displaying 1 result from an estimated 1 matches for "selectmark".

Did you mean: select_mask
2008 Nov 18
1
While loop set up
...ces)>14 should work, but I'm not sure where to set this. Any help would be appreciated. Rodrigo #some markers, chromosomes and locations loc<- rep(1:100, 5) marker<- paste("A", seq(1:500), sep="") chr<- rep(1:5, rep(100,5)) mm<- data.frame(marker, chr, loc) selectmarkers<- function(n=10){ tapply(mm$marker, mm$chr, function(m){ # while (max(distances) > 14) { mars<- sort(sample(m, n)) distances<- rep(NA, (length(mars)-1)) for (i in 1:(length(mars)-1)) { distances[i]<- mm[mars[i+1], 'loc'] - mm[mars[i], 'loc'...