bin2dec = function(binary_vector, nattributes, basevector){
dec = 0
for (i in nattributes:1){
dec = dec + binary_vector[i]*(basevector[i]^(nattributes-i));
}
return(dec)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.