One of my functions return a list of dataframes which I need to concatenate into 1 single dataframe. I do this using:
do.call(rbind,list_df)
This used to work as expected. But for some strange reason (which is driving me nuts!) it no longer does. Now, instead of combining into a single df, it just retains it as separate lists. When I print the output this is what I get (the list had 2 dataframes with 5 columns each, and the output is retained as such without concatenation)
out_df
[1,] List,5
[2,] List,5
Even when i try this manually without do.call (as shown below) it still gives me the same output, without concatenation:
rbind(list_df[[1]],list_df[[2]])
I am at a loss trying to figure out what's happening. (Each dataframe in the list has the same attributes - similiar no. of columns and same names, so rbind'ing should ideally work)