R/mostrepeated.R

Defines functions mostrepeated

Documented in mostrepeated

#' Miscellaneous helpers
#'
#' Find most repeated value in a vector
#' @export

mostrepeated <- function(x) as(names(which.max(table(x))), mode(x)) 
mattelisi/mlisi documentation built on Oct. 13, 2019, 5:59 p.m.