View source: R/pivot_quantiles.R
pivot_quantiles_wider | R Documentation |
quantile_pred
widerAny selected columns that contain quantile_pred
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 <- quantile_pred(rbind(1:3, 2:4), 1:3 / 4)
d2 <- quantile_pred(rbind(2:4, 3:5), 2:4 / 5)
tib <- tibble(g = c("a", "b"), d1 = d1, d2 = d2)
pivot_quantiles_wider(tib, "d1")
pivot_quantiles_wider(tib, dplyr::ends_with("2"))
pivot_quantiles_wider(tib, d2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.