Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
unnesting list variable with dataframes. #58
I recently ran into the situation where I had a dplyr dataframe with one of the variables being a list variable. This list variable contained a dataframe. I wanted to unnest this collumn. Each collumn in the nested dataframes should become a separate collumn in the unnested data frame. As far as I know this is not possible in the current implementation (in straightforward way). What would be the suggested strategy to have this behaviour?
gives this output:
You would need to make the assumption that all the dataframes in the list variable are the same. A typical use case could be that on some variables in a dataframe a function is applied
I hope this is clear enough.