NA's filtered out and does not break ties the same as stats::quantile.

replyr_quantilec(
  x,
  cname,
  probs = seq(0, 1, 0.25),
  ...,
  tempNameGenerator = mk_tmp_name_source("replyr_quantilec")
)

Arguments

x

tbl or item that can be coerced into such.

cname

column name to compute over (not 'n' or 'csum')

probs

numeric vector of probabilities with values in [0,1].

...

force later arguments to bind by name.

tempNameGenerator

temp name generator produced by wrapr::mk_tmp_name_source, used to record dplyr::compute() effects.

Examples

d <- data.frame(xvals=rev(1:1000)) replyr_quantilec(d,'xvals')
#> 0 0.25 0.5 0.75 1 #> 1 250 500 750 1000