Description Usage Arguments Value Examples
Creates a single-row tibble with quantiles and pr values. Intended for use
with summarize()
.
1 | quantile_df(x, p = c(0.25, 0.5, 0.75), na.rm = FALSE)
|
x |
numeric vector whose quantiles are wanted, or column name |
p |
probability values |
na.rm |
boolean flag; pre-filter NA's? |
tibble
1 2 3 4 5 | library(tidyverse)
library(rzdr)
diamonds %>%
group_by(cut) %>%
summarize(quantile_df(cut))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.