search for: cumstat

Displaying 2 results from an estimated 2 matches for "cumstat".

Did you mean: dumstat
2020 Oct 31
0
fast way to find most common value across columns dataframe
Thank you. The problem was not finding the mode but applying it the R way (I have the tendency to loop into each line of the dataframes, which I believe is NOT the R way). I'll try them. Best regards Luigi On Sat, Oct 31, 2020 at 5:40 PM Bert Gunter <bgunter.4567 at gmail.com> wrote: > > As usual, a web search ("find statistical mode in R") brought up something that is
2020 Oct 31
2
fast way to find most common value across columns dataframe
As usual, a web search ("find statistical mode in R") brought up something that is possibly useful -- Did you try this before posting? If not, please do so in future and let us know what your results were if you subsequently post here. Here's what SO suggested: Mode <- function(x) { ux <- unique(x) ux[which.max(tabulate(match(x, ux)))] } # ergo: