search for: extra1_2

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

Did you mean: extra1_1
2007 Feb 01
3
Can this loop be delooped?
...length%/%numgroups, with the large groups all to one side, left if place=LEFT # totalength >= numgroups >= groupnum all integers, or it won't work right if(charmatch(toupper(place),"RIGHT",nomatch=FALSE)==1){ extra1_1=max((groupnum-1)+((totalength%%numgroups)-numgroups),0) extra1_2=(groupnum>numgroups-totalength%%numgroups) } else{ extra1_1=min(totalength%%numgroups,groupnum-1) extra1_2=(groupnum<=totalength%%numgroups) } gsize=totalength%/%numgroups gleft=((groupnum-1)*gsize)+extra1_1+1 gright=gleft+gsize+extra1_2-1 gleft:gright } The function appears to w...