View source: R/pivot_quantiles.R
pivot_quantiles_longer | R Documentation |
quantile_pred
longerA column that contains quantile_pred
will be "lengthened" with
the quantile levels serving as 1 column and the values as another. If
multiple columns are selected, these will be prefixed with the column name.
pivot_quantiles_longer(.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_longer(tib, "d1")
pivot_quantiles_longer(tib, dplyr::ends_with("1"))
pivot_quantiles_longer(tib, d2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.