sample_k_b_y <- function(m, m_i, childrenCount, childrenCountSpp, ...){
m_i <- table(sample(names(childrenCount),
size = m,
replace = TRUE,
prob = childrenCountSpp / sum(childrenCountSpp)))
return(m_i)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.