- Machine Learning with R Quick Start Guide
- Iván Pastor Sanz
- 57字
- 2021-06-24 16:01:30
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
推薦閱讀
- Hands-On Graph Analytics with Neo4j
- Maya 2012從入門到精通
- 80x86/Pentium微型計算機原理及應用
- Photoshop CS3特效處理融會貫通
- Hands-On Reactive Programming with Reactor
- RedHat Linux用戶基礎
- 中國戰略性新興產業研究與發展·智能制造裝備
- FPGA/CPLD應用技術(Verilog語言版)
- Visual Studio 2010 (C#) Windows數據庫項目開發
- PowerMill 2020五軸數控加工編程應用實例
- 計算機應用基礎實訓·職業模塊
- Learn Microsoft Azure
- 中國戰略性新興產業研究與發展·數控系統
- JSP通用范例開發金典
- 亮劍.NET:圖解ASP.NET網站開發實戰