Skip to content
Prev 314019 / 398521 Next

permutation of vectors (1 or 0)

> you might also try (names modified a bit since R already has a NULL object)
    >> Zeros <- rep(0,10)
    >> Ones <- rep(1,10)
    >> expand.grid(Map(c, Zeros, Ones))

Wow -- really neat!

Thank you, Jeff