Skip to content
Prev 201160 / 398503 Next

How to make a matrix of a number of factors?

Hi,

Try this,

do.call(expand.grid, lapply(7:3, seq, from=1))


HTH,

baptiste


2009/11/22 Peng Yu <pengyu.ut at gmail.com>: