Calculate the mode
MODE.Rd
Calculate the mode of a numerical vector. The function will return a named numerical vector with the mode of x calculated in three different ways. Mode1 is stats::median(x) / (cv * cv + 1) as recommended by Atso but this method seems to give to low values if the cv is high. Mode2 is found by tabulating the data and returning the one with highest number of occurrences. Mode3 is calculated with the density() function and is probably the one we