#' @examples
#' set.seed(1)
#' lvls = c("a", "b", "c")
#' truth = factor(sample(lvls, 10, replace = TRUE), levels = lvls)
<% if ("response" %in% formalArgs(mid)) { %>
#' response = factor(sample(lvls, 10, replace = TRUE), levels = lvls)
#' <%= mid %>(truth, response)
<% } else { %>
#' prob = matrix(runif(3 * 10), ncol = 3)
#' colnames(prob) = levels(truth)
#' <%= mid %>(truth, prob)
<% } %>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.