How can I create a data.frame from a nested list with differing numbers of variable
问题 I have downloaded a json file of Nobel Laureates and transformed it to a list, named 'nobels'. A couple of records are here shown in the structure str(nobels) List of 1 $ laureates:List of 2 ..$ :List of 13 .. ..$ id : chr "359" .. ..$ firstname : chr "Axel Hugo Theodor" .. ..$ surname : chr "Theorell" .. ..$ born : chr "1903-07-06" .. ..$ died : chr "1982-08-15" .. ..$ bornCountry : chr "Sweden" .. ..$ bornCountryCode: chr "SE" .. ..$ bornCity : chr "Linköping" .. ..$ diedCountry : chr