Nothing
compute.combinations <-
function(
short.factor.structure, capacity, use.order
) { #begin function
comb <- matrix(c(sapply(short.factor.structure,length),unlist(capacity)),ncol=2)
if (use.order) {
combinations <- prod(factorial(comb[,1])/(factorial((comb[,1]-comb[,2]))))
} else {
combinations <- prod(choose(comb[,1],comb[,2]))
}
return(combinations)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.