# NOT RUN {
ncombinations(5, 2)
ncombinations(x = LETTERS, k = 5)
# integer overflow
# }
# NOT RUN {
ncombinations(40, 15)
# }
# NOT RUN {
ncombinations(40, 15, bigz = TRUE)
# number of combinations of `c("a", "b", "b")`
# they are `c("a", "b")` and `c("b", "b")`
ncombinations(freq = c(1, 2), k = 2)
# zero sized combinations
ncombinations(5, 0)
ncombinations(5, 6)
ncombinations(0, 1)
ncombinations(0, 0)
# }
Run the code above in your browser using DataLab