Convert a list of numeric vectors with different lengths to data.frame
问题 I have a df : dput(head(data)) structure(list(company_code = c(1L, 1L, 1L, 1L, 1L, 11L, 11L, 11L, 12L, 13L, 13L), company_name = c("AB Billingsfors-Långed", "AB Billingsfors-Långed", "AB Billingsfors-Långed", "AB Billingsfors-Långed", "AB Billingsfors-Långed", "AB Iggesunds B", "AB Iggesunds B", "AB Iggesunds B", "AB Industripapp", "AB Klippans FinpB", "AB Klippans FinpB" ), year_cg_code = c(11920L, 11920L, 11920L, 11920L, 11920L, 111929L, 111929L, 111929L, 121929L, 131929L, 131929L), plant