Hi:
   I have two vectors of data, x and y and I want to get the "polynomial" expansion of (x+y)^p with any integer power p in R. Suppose p=2, then I want a matrix of five vectors, namely, x y x^2 y^2 x*y. The coefficient of the polynomial is not needed. I can write it manully if p is small. But I want it in the case of p=10 or even bigger, is there any function in R can do that automatically for me with certain choice of p?
   Thx a lot!
 
 liu
 
 		
---------------------------------


	[[alternative HTML version deleted]]

