I'm trying to store multiple dataframes in a list. However, at some point, the dataframes end up getting converted into lists, and so I end up with a list of lists.

All I'm really trying to do is keep all my dataframes together in some sort of structure.

Here's the code that fails:

```
all_dframes <- list() # initialise a list that will hold a dataframe as each item
for(file in filelist){ # load each file
    dframe <- read.csv(file) # read CSV file
    all_dframes[length(all_dframes)+1] <- dframe # add to the list
}

```

If I now call, for example, `class(all_dframes[1])`, I get 'list', whereas if I call `class(dframe)` I get 'data.frame'!