Convert a Numeric Object to Character in R Programming - as.character() Function Last Updated : 16 Jun, 2020 Comments Improve Suggest changes Like Article Like Report 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 + 3) as.character(1.5) Output: [1] "1" [1] "5" [1] "1.5" Example 2: Python3 1== # R program to convert a numeric object # to character object # Creating a vector x1 <- c(1, 2, 3, 4) x2 <- c(-1, 2, 1.5, -3) # Calling as.character() function as.character(x1) as.character(x2) Output: [1] "1" "2" "3" "4" [1] "-1" "2" "1.5" "-3" Comment More infoAdvertise with us Next Article Convert a Numeric Object to Character in R Programming - as.character() Function N nidhi_biet Follow Improve Article Tags : R Language R Math-Function R Vector-Function R String-Functions Similar Reads Convert a Character Object to Integer in R Programming - as.integer() Function as.integer() function in R Language is used to convert a character object to integer object. Syntax: as.integer(x) Parameters: x: Character Object Example 1: Python3 1== # R program to convert a character object # to an integer object # Calling as.integer() function as.integer("4") as.inte 1 min read 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 Convert Character value to ASCII value in R Programming - charToRaw() Function charToRaw() function in R Language is used to convert the given character to their corresponding ASCII value or "raw" objects. Syntax: charToRaw(x)Parameters: x: Given characters to be converted  Example 1: Python3 # R program to illustrate # charToRaw function # Calling charToRaw() function over 1 min read Check if Object is of the Character Data type in R Programming - is.character() Function 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: Python 1 min read Convert an Object into a Vector in R Programming - as.vector() Function as.vector() function in R Language is used to convert an object into a vector. Syntax: as.vector(x) Parameters: x: Object to be converted Example 1: Python3 1== # R program to convert an object to vector # Creating an array x <- array(c(2, 3, 4, 7, 2, 5), c(3, 2)) x # Calling as.vector() Function 1 min read Convert an Object to Data Frame in R Programming - as.data.frame() Function as.data.frame() function in R Programming Language is used to convert an object to data frame. These objects can be Vectors, Lists, Matrices, and Factors. Syntax: as.data.frame(object) Parameters: object: Vector, Matrix, factor, or data frameR - as.data.frame() Function ExampleExample 1: Basic exam 2 min read Convert an Object to a Table in R Programming - as.table() Function as.table() function in R Language is used to convert an object into a table. Syntax: as.table(x) Parameters: x: Object to be converted Example 1: Python3 1== # R Program to convert # an object to a table # Creating a vector vec = c(2, 4, 3, 1, 2, 3, 2, 1, 4, 2) # Calling as.table() Function as.table 1 min read Create an Object of mode call in R Programming - call() Function call() function in R Language is used to create or test for objects of mode "call". Syntax: call(name, ...) Parameters: name: a non-empty character string naming the function to be called ...: arguments to be part of the call Example 1: Python3 # R program to illustrate # call function # Calling cal 1 min read Convert a Vector into Factor in R Programming - as.factor() Function as.factor() function in R Programming Language is used to convert the passed object(usually Vector) into a Factor. Syntax: as.factor(object) Parameters: Object: Vector to be convertedas.factor() Function in R ExampleExample 1: Convert a Factor in RR # Creating a vector x<-c("female", "male", "ma 1 min read Convert an Integer to a Binary value in R Programming - as.binary() Function as.binary() function in R Language is used to convert an integer value to a binary value. Syntax: as.binary(x) Parameters: x: Integer value Example 1: Python3 1== # R Program to convert # an integer to binary # Loading library library(binaryLogic) # Calling as.binary() function as.binary(1) as.binar 1 min read Like