#' Returns weighted kappa
#'
#'
#' @name weightedKappa
#' @param data data
#' @rdname weightedKappa
#' @export
weightedKappa <- function(data){
suppressMessages(library(agree))
options(warn=-1)
a <- psych::cohen.kappa(table(data))
paste("Weighted Kappa", round(a$weighted.kappa, 2), sep=" = ")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.