I'm teaching myself tidyverse, and working on purrr at the moment. For example, using map_dbl() to find the variance of the features of a data set is clear. This returns a list. For example:
library(tidyverse)
diamonds %>%
select_if(is.numeric) %>%
map_dbl(var)
The result looks like:
So far so good. But if I want to do anything (such as sort the results), the labels are lost. For example:
select_if(is.numeric) %>%
map_dbl(var) %>%
as_tibble() %>%
arrange(value)
This loses the labels. For example:
How is this done in the tidyverse a way that keeps the labels?

