generate all combinations
gen_combn(x, n = 2)
x
vector
n
numbers of element to combine
all combinations
gen_combn(1:4, n = 2)