#' @importFrom tibble as_tibble
mat2d_f <- function(x) {
if (is.null(x)) {
return(NULL)
}
if (is.null(dim(x))) {
x <- matrix(x)
}
colnames(x) <- letters[1:ncol(x)]
tibble::as_tibble(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.