tidy_quantile | R Documentation |
This function respects groupings from dplyr::group_by()
. When the dataframe
contains grouped data, the quantiles are computed within each subgroup of
data.
tidy_quantile(data, var, probs = seq(0.1, 0.9, 0.2))
data |
a dataframe |
var |
a column in the dataframe |
probs |
quantiles to return. Defaults to |
a long dataframe (a tibble) with quantiles for the variable.
tidy_quantile(sleep, extra) sleep %>% dplyr::group_by(group) %>% tidy_quantile(extra)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.