GristMatrix <- function(Edgelist, ColNames = NULL){
Matrix <- dist(Edgelist) %>% as.matrix
if(!is.null(ColNames)){
dimnames(Matrix) <- list(ColNames, ColNames)
}
Matrix %>% return
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.