Coercing the Argument to a Name in R Programming - as.name() Function Last Updated : 19 Jun, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 argument to a name x <- as.name("sample") # Calling the is.name() function # to check whether the argument is # name or not is.name(x) Output: [1] TRUE Example 2: Python3 # R program to illustrate # as.name() function # Calling the as.name() function to # coerce the argument to a name x <- as.name("sample") # Getting the class of the argument class(x) Output: [1] "name" Comment More infoAdvertise with us Next Article Print the Argument to the Screen in R Programming - print() Function K Kanchan_Ray Follow Improve Article Tags : R Language R Object-Function Similar Reads Check if the Argument is a Name in R Programming - is.name() Function is.name() function in R Language is used to return TRUE if the argument is name else returns FALSE. The is.name() and is.symbol() functions are identical. Syntax: is.name(x) Parameters: x: R object to be tested Example 1: Python3 # R program to illustrate # is.name() function # Initializing a string 1 min read Get the List of Arguments of a Function in R Programming - args() Function args() function in R Language is used to get the required arguments by a function. It takes function name as arguments and returns the arguments that are required by that function. Syntax: args(name) Parameters: name: Function name Returns: For a closure: Formal Argument list but with NULL body For 1 min read Print the Argument to the Screen in R Programming - print() Function print() function in R Language is used to print out the argument to the screen. Syntax: print(x, digits, na.print) Parameters: x: specified argument to be displayed digits: defines minimal number of significant digits na.print: indicates NA values output format Example 1: Python3 # R program to illu 2 min read Coercing an Object of mode "list" to mode "call" in R Programming - as.call() Function 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.c 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 Get or Set names of Elements of an Object in R Programming - names() Function names() function in R Language is used to get or set the name of an Object. This function takes object i.e. vector, matrix or data frame as argument along with the value that is to be assigned as name to the object. The length of the value vector passed must be exactly equal to the length of the obj 2 min read Like