Consider this nested list of dataframes:
df <- data.frame(x = 1:5, y = letters[1:5])
l <- list(df, list(df, df), list(df, list(df, df, list(df))), list(df), df)
How can one get from this deeply nested list to a simple list of dataframes:
list(df, df, df, df, df, df, df, df, df)
Usual solutions (like here) fails to keep dataframes' structure.