I have followup question based on this one.
I have used df <- ldply(listOfDataFrames, data.frame)
to combine a list of 12000+ dataframe into one, but since each dataframe in the list has no identifier, I need to know which dataframe comes from which list.
I know I can use ldply(test,nrow)
to create another dataframe and then use a for-loop
to add the list name, but it seems a bit slow, I wonder if there is any faster method. Thanks.