Unnesting a data frame containing lists
问题 I have a data frame that contains lists, like below: # Load packages library(dplyr) # Create data frame df <- structure(list(ID = 1:3, A = structure(list(c(9, 8), c(7,6), c(6, 9)), ptype = numeric(0), class = c("vctrs_list_of", "vctrs_vctr")), B = structure(list(c(3, 5), c(2, 6), c(1, 5)), ptype = numeric(0), class = c("vctrs_list_of", "vctrs_vctr")), C = structure(list(c(6, 5), c(7, 6), c(8, 7)), ptype = numeric(0), class = c("vctrs_list_of", "vctrs_vctr")), D = structure(list(c(5, 3), c(4,