官术网_书友最值得收藏!

Factor

A vector of strings of a character is known as a factor. It is used to represent categorical data, and may also include the different levels of the categorical variable. Factors are created with the factor command:

r<-c(1,4,7,9,8,1)
r<-factor(r)
r
## [1] 1 4 7 9 8 1
## Levels: 1 4 7 8 9
主站蜘蛛池模板: 永宁县| 莆田市| 金平| 新田县| 呼图壁县| 建平县| 荣成市| 兖州市| 尼玛县| 越西县| 黄冈市| 宁国市| 曲周县| 平山县| 桃园县| 尉犁县| 犍为县| 新泰市| 乌鲁木齐县| 房产| 南丹县| 龙井市| 江华| 鹤壁市| 曲松县| 大城县| 武平县| 海安县| 综艺| 商水县| 台北县| 松原市| 宜昌市| 江北区| 白山市| 昌乐县| 和政县| 松江区| 潮州市| 措勤县| 杭锦旗|