为了账号安全,请及时绑定邮箱和手机立即绑定

table unclass class(unclass) 这几个函数不太懂意思?也不知其作用?


> table(x)

x

  male female 

     2      3 

> unclass(x)

[1] 2 2 1 1 2

attr(,"levels")

[1] "male"   "female"

> class(unclass(x))

[1] "integer"

> ?table

> ?unclass

> ?class(unclass)


正在回答

2 回答

 ?table ?unclass ?class(unclass)在控制台查找 再操作大概就懂了


0 回复 有任何疑惑可以回复我~

table(x)检查列表属性unclass(x)去除列表属性

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

table unclass class(unclass) 这几个函数不太懂意思?也不知其作用?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信