#' Table to Matrix
#'
#' Convert table (including xtabs) to matrix.
#'
#' @param x a table.
#'
#' @return Matrix with same data as \code{x}.
#'
#' @export
tab2mat <- function(x)
{
as.matrix(as.data.frame(unclass(x)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.