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

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
主站蜘蛛池模板: 惠来县| 旬阳县| 泉州市| 德清县| 休宁县| 游戏| 黄平县| 仪征市| 竹北市| 贵溪市| 新巴尔虎右旗| 新闻| 信丰县| 会泽县| 顺义区| 南涧| 丽水市| 舞阳县| 昭平县| 普兰县| 民乐县| 塔城市| 新乐市| 买车| 怀安县| 阜城县| 环江| 班玛县| 萨嘎县| 安仁县| 江津市| 兰考县| 额济纳旗| 靖远县| 衡阳县| 平湖市| 康马县| 西乌珠穆沁旗| 科尔| 荣昌县| 和田县|