I have a list, listDFs
, where each element is a data frame. Each data frame has a different number of rows and the same number of columns.
I should create a vector beginning from listDFs[[i]]$Name extracting all the i element from the list.
I thought to use a loop such:
vComposti <- c()
for(j in 1:10){vComposti <- c(listDFs[[j]]$Name)}
But the result is a vector containing only the first level (listDFs[[1]]$Name) of the list.
Where I wrong?? Do you have any suggestion??