Skip to content
Prev 332821 / 398506 Next

all combinations with replacement not ordered

... and actually, since u can be assumed to be of the form shown,

v <-do.call(expand.grid, split(rep(u,len),rep(u,e=len)))


should do.

-- Bert
On Thu, Nov 7, 2013 at 10:06 AM, Bert Gunter <bgunter at gene.com> wrote: