# NOT RUN {
npermutations(7)
npermutations(LETTERS[1:5])
npermutations(5, 2)
npermutations(LETTERS, k = 5)
# integer overflow
# }
# NOT RUN {
npermutations(14, 10)
# }
# NOT RUN {
npermutations(14, 10, bigz = TRUE)
# number of permutations of `c("a", "b", "b")`
# they are `c("a", "b")`, `c("b", "b")` and `c("b", "b")`
npermutations(k = 2, freq = c(1, 2))
# zero sized partitions
npermutations(0)
npermutations(5, 0)
npermutations(5, 6)
npermutations(0, 1)
npermutations(0, 0)
# }
Run the code above in your browser using DataLab