powered by
generate all combinations
gen_combn(x, n = 2)
all combinations
vector
numbers of element to combine
gen_combn(1:4, n = 2)
Run the code above in your browser using DataLab