setRownames <- function(dat) {
if (nrow(dat) > 0) {
return(`row.names<-`(dat, 1:nrow(dat)))
} else {
return(dat)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.