Description Usage Arguments Value Author(s) Examples
Returns the median of a list of values with corresponding frequencies. This is not intended to be called directly by the user.
1 | median_freq(values, freqs)
|
values |
A vector of the unique values that occur |
freqs |
A vector of the number of occurrences of each value |
Returns the median value of the data comprising each entry in values repeated the corresponding entry in freqs number of times, as a numeric.
Tom Mayo t.mayo@ed.ac.uk
1 | median_freq(c(1,2,3), c(3,6,10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.