I have a very large list (just one list) with 13,500 elements in it. Each element is a dataframe with 1 row and 12 columns, each dataframe is structured the same (same columns names and similar data in each column). I want to merge all elements in this list into one dataframe. Essentially, the new dataframe will have 13,500 rows and 12 columns. I need everything in one dataframe to work with ggplot and need to be able to work with data as a dataframe. Can someone suggest the best way to do this? Thanks for the help.
I tried using the purr:: merge() function and was not successful. Or at least the process did not finish in more than 10 min and I had to terminate R studio.
Here are some data from the list:
list(structure(list(n1 = 10, n2 = 10, mean_1 = 0, mean_2 = 0, var_1 = 1, var_2 = 1, tpooled = 2.93152220266846, pvalue_pooled = 0.00891647393074033, result_pooled = 1, t_unpooled = 2.93152220266846, pvalue_unpooled = 0.00931815204271521, result_unpooled = 1), class = "data.frame", row.names = "n1"), structure(list(n1 = 30, n2 = 10, mean_1 = 0, mean_2 = 0, var_1 = 1, var_2 = 1, tpooled = -0.312649684961248, pvalue_pooled = 0.756256229272491, result_pooled = 0, t_unpooled = -0.248766791009062, pvalue_unpooled = 0.808124700588531, result_unpooled = 0), class = "data.frame", row.names = "n2"))
mergeis a base R function and not frompurrrrbindlist()from the data.table package link -- this will "stack" all 13,500 list elements as one data.frame```) need to be alone on their own lines, not shared with any code or text. See stackoverflow.com/editing-help and meta.stackexchange.com/a/22189