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)
> 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)
2019-01-09
举报