[R] Set up a while loop

2008-11-18 Thread Rodrigo Gularte
I am attempting to sample 10 markers from each chromosome, with a maximum distance of 14, calculated by the location of the marker in each chromosome as loc[i+1] - loc[i]. I presume the easiest way to do this is with a while loop, so that the function keeps re-sampling when the max distains is gre

[R] While loop set up

2008-11-18 Thread Rodrigo Gularte
I am attempting to sample 10 markers from each chr, with a maximum distance of 14, calculated by the location of the marker in each chromosome as loc[i+1] - loc[i]. I presume the easiest way to do this is with a while loop, so that the function keeps resampling when the max distains is greater tha