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

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

Arguments

x

tbl or item that can be coerced into such.

cname

column name to compute over

probs

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

...

force later arguments to be bound 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_quantile(d,'xvals')
#> 0 0.25 0.5 0.75 1 #> 1 250 500 750 1000