median_freq: Finds the median

Description Usage Arguments Value Author(s)

View source: R/RcppExports.R

Description

Returns the median of a list of values with corresponding frequencies. This is not intended to be called directly by the user.

Usage

1
median_freq(values, freqs)

Arguments

values

A vector of the unique values that occur

freqs

A vector of the number of occurrences of each value

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.

Author(s)

Tom Mayo [email protected]


TomMayo/M3Ddevel documentation built on May 10, 2017, 5:42 p.m.