# Compare choose function with gchoose function for integers:
gchoose(c(8, 9, 10), c(3, 4, 5)) == choose(c(8, 9, 10), c(3, 4, 5))
# The gchoose function also works for non-integers:
gchoose(10.5, 7.5)
Run the code above in your browser using DataLab