I am creating a list of filenames new <- as.list(filename1)
which looks like below:
[[9]]
[1] "test/a.csv"
[[10]]
[1] "test/b.csv"
and then I am writing the below lapply to load each file to a data.frame(df) assuming that lapply will go over calling read.csv for every element in list
df <- lapply(new,read.csv)
But then when I check the typeof(df) its still a list will all values loaded from my files.
why would it not return me a data.frame rather a list?