Create all combinations of the elements of a vector.
Creates a matrix with all combinations of 1 to all elements of the
vector provided. Elements to occur in all combinations can be specified.
This is internally called by
A vector of elements of which combinations are to be formed.
A vector of elements that are supposed to occur in each combination.
A boolean indicating if some output should be printed (TRUE) or not (FALSE=default).
A matrix with one combination per row. For the shorter combinations, the columns to the right are filled up with NA.
Lutz P Breitling <email@example.com>