小编Mar*_*eck的帖子

typeof(data.frame)在R中显示"list"

有人可以澄清为什么typeof(data.frame)在R中显示列表?相反,类给出了预期的类型.例如,演示使用内置的data.frame mtcars.

> typeof(mtcars)
[1] "list"
> class(mtcars)
[1] "data.frame"
Run Code Online (Sandbox Code Playgroud)

有关如何使用typeof与class的任何提示?

attributes r

16
推荐指数
1
解决办法
4612
查看次数

标签 统计

attributes ×1

r ×1