Re: [R] Permutations of configurations on multiple columns

2011-10-08 Thread R. Michael Weylandt
So I've been puzzling on this for a week or so and don't see any elegant way to do it. I'd imagine there's a nifty way to do it using ddply() in conjunction with some melt() tools to get it all in one data frame (or just possibly mapply() after converting the "iN" factors to characters to make sure

Re: [R] Permutations of configurations on multiple columns

2011-09-30 Thread Metronome123
Michael Weylandt wrote: > > I'm not entirely sure how these two objects are related. Perhaps give a > little more information on the transform and we can help with > implementation... > Ok, I have got 2 matrices [P,I] and [I,E]. testcontents [P,I]: structure(list(P = structure(c(1L, 1L, 1L, 2L

Re: [R] Permutations of configurations on multiple columns

2011-09-29 Thread R. Michael Weylandt
I'm not entirely sure how these two objects are related. Perhaps give a little more information on the transform and we can help with implementation... For now checkout expand.grid() library(gtools) Michael Weylandt On Thu, Sep 29, 2011 at 8:25 AM, Metronome123 wrote: > Hi, > > I have got this

[R] Permutations of configurations on multiple columns

2011-09-29 Thread Metronome123
Hi, I have got this start situation: structure(list(subject = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L), .Label = c("s1", "s2"), class = "factor"), part = structure(c(1L, 1L, 2L, 3L, 4L, 5L, 1L, 1L, 2L, 6L, 6L), .Label = c("p1", "p2", "p3", "p4", "p5", "p9"), class = "fac