r
#this must be a list
#In r we subset dataframes/tables with df[x,y]
#We subset list of dataframes with ls[[i]]...[x,y]
#ls[[1]] selects the first element of the list
#for example you have a list of list dataframes, you subset it with ls[[i]][[j]][x,y]
#A simple answer to your problem is to loop each element in the list and do whatever you want
new_df <- data.frame()
for(i in seq_along(ls)) {
df[i] <- ls[[i]][2,]
}
#apply is faster, but its not easy to read for me