typeof(data.frame)显示“数据框”;列表“;在R
有人能澄清为什么typeof(data.frame)在R中显示列表吗?相反,类给出了预期的类型。例如,演示使用内置数据帧mtcarstypeof(data.frame)显示“数据框”;列表“;在R,r,attributes,R,Attributes,有人能澄清为什么typeof(data.frame)在R中显示列表吗?相反,类给出了预期的类型。例如,演示使用内置数据帧mtcars > typeof(mtcars) [1] "list" > class(mtcars) [1] "data.frame" 关于如何使用typeof和class的提示?
> typeof(mtcars)
[1] "list"
> class(mtcars)
[1] "data.frame"
关于如何使用typeof和class的提示?
干杯。“不是你,是R”