- 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:

推薦閱讀
- Visualforce Development Cookbook(Second Edition)
- HBase Design Patterns
- Windows 8應用開發實戰
- 機艙監測與主機遙控
- Matplotlib 3.0 Cookbook
- Visual C# 2008開發技術詳解
- Machine Learning with the Elastic Stack
- 網中之我:何明升網絡社會論稿
- Linux嵌入式系統開發
- 中文版AutoCAD 2013高手速成
- Mastering MongoDB 3.x
- 數據清洗
- 大話數據科學:大數據與機器學習實戰(基于R語言)
- 白話機器學習算法
- Building Smart Drones with ESP8266 and Arduino