powered by
Find modes in a multimodal distribution of values based on the density of such values.
find_modes(density)
object of class density obtained using the function density.
density
A data.frame containing the values corresponding to the modes and the density for those particular values.
# NOT RUN { # Data data("dist_list", package = "biosurvey") dens <- density(dist_list$`12`) # Finding modes modes <- find_modes(density = dens) modes # }
Run the code above in your browser using DataLab