Skip to content
Prev 138086 / 398506 Next

A question on getting all possible combinations

target = c("u", "d")
apply(expand.grid(rep(list(target), 6)), 1, paste, sep="", collapse="")

b
On Mar 1, 2008, at 9:13 AM, Megh Dal wrote: