2
Something like Encontramoda(Dataset, N_maiores_modas)?
I am working with the following integers: c(1,2,3,4,5,6,7,7,7,8,8,8,9,9,9,9)
That is, the example is trimodal and has a bigger fashion than the other two.
The ideal would be perhaps to create a function that puts all the integers and order and subtracts the next one from the previous one, when giving 0 sum to a fashion variable N and then comparing these fashion variables N? I’m trying to develop the code for this but I still can’t.
In his example, the fashion is 9, since it occurs more often than 7 and 8.
– Daniel Ikenaga