Coercing an Object of mode "list" to mode "call" in R Programming - as.call() Function Last Updated : 19 Jun, 2020 Comments Improve Suggest changes Like Article Like Report as.call() function in R Language is used to coerce the object of mode "list" to mode "call". The first element of the list becomes the function part of the call. Syntax: as.call(x) Parameters: x: an arbitrary R object Example 1: Python3 # R program to illustrate # as.call function # Calling the as.call() function as.call(list(list, 5, 10)) as.call(list(as.name("::"), as.name("list"), as.name("base"))) Output: .Primitive("list")(5, 10) list::base Example 2: Python3 # R program to illustrate # as.call function # Initializing a function round f <- round # Calling the as.call() function as.call(list(f, quote(A))) Output: .Primitive("round")(A) Comment More infoAdvertise with us Next Article Coercing an Object of mode "list" to mode "call" in R Programming - as.call() Function K Kanchan_Ray Follow Improve Article Tags : R Language R Functions R List-Function Similar Reads 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 Check if an Object is a Call in R Programming - is.call() Function is.call() function in R Language is used to determine whether x is a call or not. Syntax: is.call(x) Parameters: x: an arbitrary R object Example 1: Python3 # R program to illustrate # is.call function # Calling is.call() function is.call(call) Output: [1] FALSE Example 2: Python3 # R program to ill 1 min read Convert an Object to List in R Programming - as.list() Function as.list() function in R Programming Language is used to convert an object to a list. These objects can be Vectors, Matrices, Factors, and dataframes. Syntax: as.list(object) Parameters: object: Vector, Matrix, factor, or data frame R - as.list() Function ExampleExample 1: Converting Vector to list 2 min read 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 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 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 Coercing the Argument to a Name in R Programming - as.name() Function as.name() function in R Language is used to coerce the argument to a name. The as.name() and as.symbol() functions are identical. Syntax: as.name(x) Parameters: x: Object to be coerced Example 1: Python3 # R program to illustrate # as.name() function # Calling the as.name() function to # coerce the 1 min read Convert values of an Object to Logical Vector in R Programming - as.logical() Function as.logical() function in R Language is used to convert an object to a logical vector. Syntax: as.logical(x)Parameters: x: Numeric or character object R - as.logical() Function ExampleExample 1: Basic example of as.logical() Function in R Programming Language.R # R Program to convert # an object to l 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 Like