Lists to Data.Frames with imap
When working with data which is a result of json-data converted to a list of lists of lists of lists … (you know what mean ;-)) I often want to convert it a data.frame.
Unfortunately there’s often a list in the source data which is unnamed.
Or the list in one row is longer than the one in another row. So converting it
straight forward into a data.frame or tibble fails with the error message
Tibble columns must have compatible sizes.
So what to do? Just leave lists as values in the cells of the data.frame.