Computes the mode (and “antimode”) of a distribution. It is not
clear whether this is a generally useful statistic, but
bedtools defined it, so we did for completeness.
distmode(x, anti = FALSE)
The vector for which the mode is computed.
Whether to return the value with the least representation, instead of the highest.
There are methods for List subclasses and ordinary vectors/factors. The List methods are useful for aggregation.
The value that is the most (or least) prevalent in the
Not to be confused with the data
mode of a vector.
bedtools_map for an example in the context of aggregation.
distmode(c(1L, 2L, 1L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.