#' @inherit setAs
#'
#' @md
#' @export
setAs('matrix', 'data.frame', function(from) as.data.frame(from, row.names=rownames(from)))
#' @inherit setAs
#'
#' @importFrom data.table as.data.table
#'
#' @md
#' @export
setAs(from='matrix', to='data.table',
function(from) as.data.table(from, keep.rownames='rownames'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.