powered by
Generate All Possible Combinations of m Out of n
allPossibleCombinations(n, m)
n
m
a JSON string with all possible combinations; object of class json as returned by toJSON
json
toJSON
# NOT RUN { allPossibleCombinations(4, 2) # }
Run the code above in your browser using DataLab