Nothing
DecToBin <- function(x, m = 32, format = "character") {
if (any(x >= 1|x <= 0)) warning("Not all entries are in (0,1). Results may be unreliable.\n")
n <- length(x)
b <- matrix(0, nrow = n, ncol = m)
for (i in 1:m) {
x2 <- x*2
b[, i] <- (x2 >= 1)
x <- x2 - floor(x2)
}
if (format == "character") {
tmp <- character(n)
for (j in 1:n) {
tmp[j] <- paste(".", paste(as.character(b[j, ]), collapse=""), sep="")
}
b <- tmp
}
return(b)
invisible()
}
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.