[R] Listing all of combinations

2006-07-14 Thread miao
Dear All: I want to list all of combination among (a,b,c,d,e,f,g,h). I try to use lp-ist(A=c(a,b,c,d,e,f,g,h),B=(a,b,c,d,e,f,g,h)etc.).and then use expand.grid(p). this does not work for the same vector A,B... Anyone had this experince? Thanks! Xin [[alternative

Re: [R] Listing all of combinations

2006-07-14 Thread Muhammad Subianto
On this day 14/07/2006 15:35, miao wrote: Dear All: I want to list all of combination among (a,b,c,d,e,f,g,h). I try to use lp-ist(A=c(a,b,c,d,e,f,g,h),B=(a,b,c,d,e,f,g,h)etc.).and then use expand.grid(p). this does not work for the same vector A,B... Anyone had this