powered by
nc_multiset(f, r)
x = c("a","a","b") # possible combinations of size 2 are "aa" and "ab". nc_multiset(table(x), 2) # = 2
Run the code above in your browser using DataLab