#' Table to Data Frame
#'
#' Convert table (including xtabs) to data frame.
#'
#' @param x a table.
#'
#' @return Data frame with same data as \code{x}.
#'
#' @importFrom utils type.convert
#'
#' @export
tab2df <- function(x)
{
as.data.frame(unclass(x), row.names=type.convert(row.names(x), as.is=TRUE))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.