Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
feature request: function which returns array pairs(permutations/combinations) #714
It's useful to aggregate on combinations of items in in an array.
A toy example:
User 1 bought
We want to aggregate all of the pairs(or triplets, etc) of items bought together.
so ideally, given this input, it would return
Ideally a flag for ordered vs unordered pairs would also be useful.
A workaround is to
@findepi thanks for jumping on this so quickly!
re: ngrams - @martint said it best-ngrams is useful for sequences of adjacent n elements - this is most useful when analyzing text. Many people frequently and incorrectly assume that ngrams will return combinations. This might be a function of the lack of descriptive documentation for