.pred_quantile <- quantile_pred(matrix(rnorm(20), 5), c(.2, .4, .6, .8))
unclass(.pred_quantile)
# Access the underlying information
extract_quantile_levels(.pred_quantile)
# Matrix format
as.matrix(.pred_quantile)
# Tidy format
library(tibble)
as_tibble(.pred_quantile)
Run the code above in your browser using DataLab