powered by
params(x) powers(x)
2^dim(x)
Function powers() lists the powers of the various combinations; function params() lists the parameters.
powers()
params()
The two functions differ only in single-p combinations (by one).
a <- gd(1:3,3:1) params(a) powers(a)
Run the code above in your browser using DataLab