#' Reduces data frame to vector of lower triangle
#'
#' @param data data
#' @param diag include diagonal entries
#'
#' @return
#' @export
#'
#'
tri <- function(data, diag = F) {
data[lower.tri(data, diag = diag)]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.