knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This page is home to code that isn't suitable for inclusion in the samc package or dedicated vignettes, but that users may find beneficial nonetheless. Some of what is included here may eventually be integrated into the package. Code here is not as thoroughly tested as the package and may not work in all situations or versions of the package.
# df will be a "long" format data.frame with columns "origin", "dest", and "result" df <- pairwise(...) # Use reshape2 to convert to a pairwise matrix reshape2::acast(df, origin ~ dest, value.var = "result")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.