R/SampleMode.R

Defines functions SampleMode

SampleMode <-
  function(x) {
    x.unique <- unique(x)
    return(x.unique[which.max(tabulate(match(x, x.unique)))])
  }

Try the rerf package in your browser

Any scripts or data that you put into this service are public.

rerf documentation built on May 2, 2019, 8:16 a.m.