September 2018
Beginner
206 pages
4h 27m
English
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:
a <- "apple"b <- "7"c <- "9-5-2016"
class(a)typeof(a)class(b)typeof(b)class(c)typeof(c)
Output: The preceding code provides the following output:
