Re: [R] Combinations of true/false values where one pair is mutually exclusive

2018-08-02 Thread R Stafford
exclude the combinations where E and F both fail. I am not sure where to go from here, but the solution does not have to be elegant or even efficient because I do not need to scale higher than 6 variables. On Thu, Aug 2, 2018 at 7:26 AM, S Ellison wrote: > > On Thu, Aug 2, 2018 at 11:20

[R] Combinations of true/false values where one pair is mutually exclusive

2018-08-01 Thread R Stafford
I have 6 variables, (A,B,C,D,E,F) that can either pass or fail (i.e., true or false). I can get a table of all pass/fail combinations with this: scenarios <- expand.grid(A = c("pass", "fail"), B = c("pass", "fail"), C = c("pass", "fail"), D = c("pass", "fail"), E = c("pass", "fail"), F =