View source: R/pivot_quantiles.R
nested_quantiles | R Documentation |
Turn a vector of quantile distributions into a list-col
nested_quantiles(x)
x |
a |
a list-col
edf <- covid_case_death_rates[1:3, ]
edf$q <- dist_quantiles(list(1:5, 2:4, 3:10), list(1:5 / 6, 2:4 / 5, 3:10 / 11))
edf_nested <- edf %>% mutate(q = nested_quantiles(q))
edf_nested %>% unnest(q)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.