digit <- function(x,round){
digital.i <- function(x,round){
if (is.numeric(x)){
x=round(x,round)
format(x,nsmall = round)
}else{
format(x,digits = round,nsmall = round)
}
}
if (any(is.data.frame(x),is.matrix(x))){
for (i in 1:ncol(x)) {
x[,i]=digital.i(x[,i],round)
}
x
}else{
digital.i(x,round)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.