Calculate the binned interpolated median
Usage
interpolated_median(x, bin_size, w = NULL, na.rm = TRUE)
Arguments
- x
numeric vector or an R object
- bin_size
size used for binning
- w
numeric vector of weights the same length as x giving the weights to use for elements of x
- na.rm
logical; if true, any NA or NaN's are removed from x before computation
Examples
interpolated_median(x = mtcars$mpg, bin_size = 0.50)
#> [1] 19