closure <- function(x, d) {
if (sum(x) == 1) {
print("Already a composition")
} else if (sum(x) == d) {
return(x / d)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.