>str(coefficients)
num [1:2, 1:4] -2.2743 -0.559 0.0785 0.5204 -28.9736 ...
- attr(*, "dimnames")=List of 2
..$ : chr [1:2] "(Intercept)" "smoke"
..$ : chr [1:4] "Estimate" "Std. Error" "z value" "Pr(>|z|)""
上面是我运行一个模型后的一个数据结构,这个结构什么解释?
- attr(*, "dimnames")=List of 2 这个是什么意思
如何提取里面的名称字符串?
>str(co)
Named num [1:4] -2.27 7.85e-02 -2.90e+01 1.41e-184
- attr(*, "names")= chr [1:4] "Estimate" "Std. Error" "z value" "Pr(>|z|)"
Named num 又是什么结构?