search for: totalength

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

2007 Feb 01
3
Can this loop be delooped?
...dexlist[[i]]<-dlpo_sm_v[bix:eix] } The key fact is that smallindexlist is a list, each list element is a subvector of dlpo_sm_v of the proper size. The sizes may be different. I tried to see whether I could eliminate the loop, as follows. First I defined a function: intgpi <- function(totalength,numgroups,groupnum,place="LEFT") { # function to split the integer sequence, 1:totalength, into the groupnum group out of numgroups groups of equal size, totalength%/%numgroups # there are totalength%%numgroups number of groups of length 1+totalength%/%numgroups, with the large groups a...