Skip to content
Prev 307684 / 398503 Next

replacing ugly for loops

Sorry, you **did** supply data and my solution **does** work (except I
left off 1 closing ")" .
+ sort(unique(do.call(c,mapply(seq,from=startNo,length=len,SIMPLIFY=FALSE))))))
$`1`
[1]  3  4  5  6 10 11

$`2`
[1]  3  4  5  6  7 15 16 17

Cheers,
Bert
On Wed, Oct 10, 2012 at 10:59 PM, Bert Gunter <bgunter at gene.com> wrote: