extracting a dataframe from a list over many objects
问题 I have over a 1000 objects ( z ) in R, each containing three dataframes ( df1 , df2 , df3 ) with different structures. z1$df1 … z1000$df1 z1$df2 … z1000$df2 z1$df3 … z1000$df3 I created a list of these objects (list1 thus contains z1 thru z1000) and tried to use lapply to extract one type of dataframe ( df2 ) for all objects, and then merge them to one single dataframe. Extraction: For a single object it would look like this: df15<- z15$df2 # I transferred the index of z to the extracted df I