R/mean_use_frequency.R

Defines functions mean_use_frequency

Documented in mean_use_frequency

#' 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)

}
cownr10r/teachr documentation built on Nov. 4, 2019, 9:14 a.m.