Cumulative Median — cmedian • TidyDensity
Description: A function to return the cumulative median of a vector.

Skip to contents

# Cumulative Median

Source: `R/vec-cumulative-functions.R`
`cmedian.Rd`

A function to return the cumulative median of a vector.

## Usage

    cmedian(.x)

## Arguments

.x

  A numeric vector

## Value

A numeric vector

## Details

A function to return the cumulative median of a vector.

## See also

Other Vector Function: `bootstrap_p_vec()`, `bootstrap_q_vec()`, `cgmean()`, `chmean()`, `ckurtosis()`, `cmean()`, `csd()`, `cskewness()`, `cvar()`, `tidy_kurtosis_vec()`, `tidy_scale_zero_one_vec()`, `tidy_skewness_vec()`

## Author

Steven P. Sanderson II, MPH

## Examples

    x <- mtcars$mpg

    cmedian(x)
    #>  [1] 21.00 21.00 21.00 21.20 21.00 21.00 21.00 21.00 21.00 21.00 21.00 20.10
    #> [13] 19.20 18.95 18.70 18.40 18.10 18.40 18.70 18.95 19.20 18.95 18.70 18.40
    #> [25] 18.70 18.95 19.20 19.20 19.20 19.20 19.20 19.20