- R Programming Fundamentals
- Kaelen Medeiros
- 90字
- 2021-07-23 16:58:20
Character
Character data is always mentioned in quotation marks; anything contained in quotation marks is called a character string. Usually, character data is of both class and type character.
Let's create and check the class() and typeof() of different character objects in R. Follow the steps given below:
- Create the following objects:
a <- "apple"
b <- "7"
c <- "9-5-2016"
- Check the class and type of each using class() and typeof(), respectively, as follows:
class(a)
typeof(a)
class(b)
typeof(b)
class(c)
typeof(c)
Output: The preceding code provides the following output:

推薦閱讀
- Hands-On Intelligent Agents with OpenAI Gym
- Mastering Matplotlib 2.x
- 高性能混合信號ARM:ADuC7xxx原理與應用開發(fā)
- 輕松學C#
- Drupal 7 Multilingual Sites
- 數據挖掘方法及天體光譜挖掘技術
- 西門子S7-200 SMART PLC實例指導學與用
- RPA(機器人流程自動化)快速入門:基于Blue Prism
- Storm應用實踐:實時事務處理之策略
- 基于神經網絡的監(jiān)督和半監(jiān)督學習方法與遙感圖像智能解譯
- Dreamweaver CS6中文版多功能教材
- 啊哈C!思考快你一步
- PLC與變頻技術應用
- Silverlight 2完美征程
- 工業(yè)機器人實操進階手冊