I am trying to run a function that outputs a very large number. The problem is that the return says inf.
The function is as follows:
comb.prob <- function(n){
choose(2000,n)*choose(28000,(300-n))/choose(30000,300)
}
However If I reduce my input numbers by 1/10, R returns a value to me.
Eg.
comb.prob <- function(n){
choose(200,n)*choose(2800,(30-n))/choose(3000,30)
}
I was wondering if there was a way to boost R’s computing power or another method so I could get R to run the first equation?