Hi all,
Given the number of help requests that involve
permutations/combinations, and the less than obvious naming of the
expand.grid function, perhaps adding an alias such as
"permute.elements" or "combine.elements" might ease the tasks of both
searchers and those offering help. Neither of the abo
1. Please always reply to the list unless there is a compelling reason
to keep the discussion private. You will have a better chance of
getting something useful that way.
2. I don't know what you mean by "I don't have a fixed number of
variables." You have to specify at least the number of variabl
Are you trying to reinvent ?expand.grid ?
-- Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
Clifford Stoll
On Fri, May 15, 2015 at 1:40 PM, WRAY NICHOLAS
wrote:
> I am tryi
I am trying to build a programme which will work out the permutations of a
number of variables, eg a=0 to 1, b=0 to 1, and c=0 to 2, so permutations
would be (0,0,0), (1,0,0), (0,1,0)... etc In this case there would be 2 x
2x 3 = 12 permutations. If the number of variables are fixed it's easy to
l
4 matches
Mail list logo