powered by
params(x) powers(x)
2^dim(x)
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