#' summary_table
#'
#' \code{summary_table} class constructor
#'
#' @param df a data frame
#'
#' @export
summary_table <- function(df) {
stopifnot(inherits(df, "data.frame"))
attr(df, "original_rows") <- 1:nrow(df)
class(df) <- c("summary_table", class(df))
df
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.