View source: R/pivot_quantiles.R
pivot_quantiles_wider | R Documentation |
dist_quantile
widerAny selected columns that contain dist_quantiles
will be "widened" with
the "taus" (quantile) serving as names and the values in the data frame.
When pivoting multiple columns, the original column name will be used as
a prefix.
pivot_quantiles_wider(.data, ...)
.data |
A data frame, or a data frame extension such as a tibble or epi_df. |
... |
< |
An object of the same class as .data
d1 <- c(dist_quantiles(1:3, 1:3 / 4), dist_quantiles(2:4, 1:3 / 4))
d2 <- c(dist_quantiles(2:4, 2:4 / 5), dist_quantiles(3:5, 2:4 / 5))
tib <- tibble::tibble(g = c("a", "b"), d1 = d1, d2 = d2)
pivot_quantiles_wider(tib, c("d1", "d2"))
pivot_quantiles_wider(tib, dplyr::starts_with("d"))
pivot_quantiles_wider(tib, d2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.