#' Calculate the term (vocabulary) frequencies
#' @param x essay_vector object
#' @return A calculation of mean frequency use of terms
#' @export
mean_use_frequency <- function(x) {
u <- length(x) / length(unique(x)) # mean use frequency
a <- paste0("mean use frequency score = ", u)
return(a)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.