我有一个包含不同元素的列表:
df1 <- data.frame(a = c(1,2,3))
df2 <- data.frame(a = c(1,2,3), b = c("a","b","c"))
df3 <- data.frame(col = c("a","c","f","h","j"), col1 = c("a1","c2","f3","h4","j5"))
aList <- list(df1,df2,df3)
我想为列表的每个元素都有一个数据框。基本上我希望aList
返回df1
,df2
和df3
。