Check if Object is of the Character Data type in R Programming - is.character() Function Last Updated : 03 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report is.character() Function in R Language is used to check if the object is of the form of a string/character or not. It will return true if any element of the object is of the character data type. Syntax: is.character(Object) Parameter: Object: It could be an array, list, vector, etc. Example 1: Python3 1== # R Program to illustrate # the use of is.character function # Creating a vector of mixed datatype x1 <- c("Hello", "Geeks", 100) # Creating a vector of Numeric datatype x2 <- c(10, 20, 30) # Calling is.character() function is.character(x1) is.character(x2) Output: [1] TRUE [1] FALSE Example 2: Python3 1== # R Program to illustrate # the use of is.character function # Create the vectors with different length vector1 <- c(1, 2, 3) vector2 <- c("GFG", "Geeks", "Hello") # taking this vector as input result <- array(c(vector1, vector2), dim = c(3, 3, 2)) # Calling is.character() function is.character(result) Output: [1] TRUE Comment More infoAdvertise with us Next Article Check if an Object is of Type Character in R Programming - is.character() Function N nidhi_biet Follow Improve Article Tags : R Language R Data-types R String-Functions Similar Reads Check if an Object is of Type Character in R Programming - is.character() Function is.character() function in R Language is used to check if the object passed to it as argument is of character type. Syntax: is.character(x) Parameters: x: Object to be checked Example 1: Python3 1== # R program to check if # object is a character # Creating a vector x1 <- 4 x2 <- c("a 1 min read Check if an Object is of Complex Data Type in R Programming - is.complex() Function is.complex() function in R Language is used to check if the object passed to it as argument is of complex data type. Syntax: is.complex(x) Parameters: x: Object to be checked Example 1: Python3 # R program to check if # object is of complex type # Calling is.complex() function is.complex(1 + 0i) is. 1 min read Check if an Object is a Table in R Programming - is.table() Function is.table() function in R Language is used to check if an object is a table. Syntax: is.table(x) Parameters: x: Object to be checked Example 1: Python3 1== # R Program to check # if an object is a table # Creating a vector vec = c(2, 4, 3, 1, 2, 3, 2, 1, 4, 2) # calling is.table() Function is.table(v 1 min read Convert a Numeric Object to Character in R Programming - as.character() Function as.character() function in R Language is used to convert a numeric object to character object. Syntax: as.character(x) Parameters: x: Numeric Object Example 1: Python3 1== # R program to convert a numeric object # to character object # Calling as.character() function as.character(1) as.character(2 + 1 min read Convert type of data object in R Programming - type.convert() Function type.convert() function in R Language is used to compute the data type of a particular data object. It can convert data object to logical, integer, numeric, or factor. Syntax: type.convert(x) Parameter: x: It can be a vector matrix or an array Example 1: Apply type.convert to vector of numbers Pytho 2 min read Checking if the Object is a Factor in R Programming - is.factor() Function is.factor() function in R Language is used to check if the object passed to the function is a Factor or not. It returns a boolean value as output. Syntax: is.factor(Object) Parameters: Object: Object to be checked Example 1: Python3 1== # Creating a vector x<-c("female", "male 1 min read Like