真的很难在R中列出列表的元素

时间:2017-11-21 14:40:13

标签: r list lapply

所以我有这个矩阵看起来像list matrix

我希望扩展列表中的所有元素,并尝试"取消列表"," lappy"和" do.call(rbind)" - 但似乎没有什么对我有用 - 能不能这么难吗?

谢谢, 克里斯

dput(y)
structure(list(Data = "Data     : example", Response = "Response variable    : Domestic.Pax", 
    Independent = "Explanatory variables: Domestic.GDP, Domestic.Airfare, Puerto.Rico.Population", 
    Intercept = "(Intercept)            11028544.153 1710074.846   6.449  < .001 ***", 
    X1 = "Domestic.GDP             408667.401   91321.734   4.475  < .001 ***", 
    X2 = "Domestic.Airfare          -4538.832    5527.947  -0.821   0.420", 
    X3 = "Puerto.Rico.Population -2347450.969  642070.743  -3.656   0.001 **", 
    `R-Square` = "R-squared: 0.868,  Adjusted R-squared: 0.851", 
    `F-Statistic` = "F-statistic: 50.514 df(3,23), p.value < .001", 
    n = "Nr obs: 27", market = "dom", version = "1"), .Names = c("Data", 
"Response", "Independent", "Intercept", "X1", "X2", "X3", "R-Square", 
"F-Statistic", "n", "market", "version"), row.names = c(NA, -1L
), class = c("tbl_df", "tbl", "data.frame"))

0 个答案:

没有答案