Re: [R] a difficult situation, how to do this using base function.

2017-07-21 Thread Bert Gunter
1. Please always reply to the list, especially here so that others can see your clarification. 2. What happens if your match.start value exceeds all the cumulative sums?? -- you seem to imply that this cannot happen. Your minimal example, while a little confusing (to me) and in html -- this can g

Re: [R] a difficult situation, how to do this using base function.

2017-07-21 Thread Jeff Newmiller
This is a plain text email list. Please learn how to explain this to your email client because what YOU saw before you sent it is not what WE saw after it bounced through the mailing list, and that can lead to misunderstandings. If at all possible you should try to augment your table with an a

[R] a difficult situation, how to do this using base function.

2017-07-21 Thread Stephen HonKit Wong
Hello, I have a following dataframe with many rows. data.frame(match.start=c(5,10,100,200),range.coordinates=c("1000-1050","1500-1555","5000-5050,6000-6180","100-150,200-260,600-900")) match.start range.coordinates 5 1000-1050 10 1500-1555