Functions_details/mode_var.R

#' Title
#'
#' @param x a column with qualitative values or discrete values
#'
#' @return the value that appears the most (mode)
#' @export
#'
#' @examples
mode_var <- function(x){
  return(names(sort(table(x),decreasing=TRUE))[1])
}
clepadellec/ClustersAnalysis documentation built on Dec. 31, 2020, 10:03 p.m.