number2binary <-
function(number, noBits) {
binary_vector = rev(as.numeric(intToBits(number)))
if(missing(noBits)) {
return(binary_vector)
} else {
binary_vector[-(1:(length(binary_vector) - noBits))]
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.