Search and Return an Object with the specified name in R Programming - get() Function Last Updated : 05 Jun, 2020 Comments Improve Suggest changes Like Article Like Report get() function in R Language is used to return an object with the name specified as argument to the function. This is another method of printing values of the objects just like print function. This function can also be used to copy one object to another. Syntax: get(object) Parameters: object: Vector, array, list, etc. Example 1: Python3 1== # R program to illustrate # the use of get() Function # Creating vectors x1 <- c("abc", "cde", "def") x2 <- c(1, 2, 3) x3 <- c("M", "F") # Calling get() Function # for print operation get("x2") # Assigning to another vector x4 <- get("x3") print(x4) Output: [1] 1 2 3 [1] "M" "F" Example 2: Python3 1== # R program to illustrate # the use of get() Function # Creating vectors x1 <- c("abc", "cde", "def") x2 <- c(1, 2, 3) # Creating a list of vectors list1 <- list(x1, x2) # Calling get() Function # for print operation get("list1") Output: [[1]] [1] "abc" "cde" "def" [[2]] [1] 1 2 3 Comment More infoAdvertise with us Next Article Search and Return an Object with the specified name in R Programming - get() Function N nidhi_biet Follow Improve Article Tags : R Language R DataFrame-Function R Vector-Function R Object-Function R Matrix-Function +1 More Similar Reads Return an Object with the specified name in R Programming - get0() and mget() Function In R programming, get0() and mget() function works similar to get() function. It is used to search and return the object with the specified name passed to it as argument. get0() Function get0() function has the same syntax as get() function but there is an addition of a new parameter which returns a 2 min read Get or Set the Type of an Object in R Programming - mode() Function mode() function in R Language is used to get or set the type or storage mode of an object. Syntax: mode(x) mode(x) <- value Here "value" is the desired mode or âstorage modeâ (type) of the object Parameters: x: R object Example 1: Python3 # R program to illustrate # mode function # Init 1 min read Display the internal Structure of an Object in R Programming - str() Function str() function in R Language is used for compactly displaying the internal structure of a R object. It can display even the internal structure of large lists which are nested. It provides one liner output for the basic R objects letting the user know about the object and its constituents. It can be 3 min read Get the number of rows of an Object in R Programming - nrow() Function nrow() function in R Language is used to return the number of rows of the specified matrix. Syntax: nrow(x)Parameters: x: matrix, vector, array or data frame  Example 1:  Python3 # R program to illustrate # nrow function # Getting R Biochemical Oxygen Demand Dataset BOD # Calling nrow() function 1 min read Check if an Object of the Specified Name is Defined or not in R Programming - exists() Function exists() function in R Programming Language is used to check if an object with the names specified in the argument of the function is defined or not. It returns TRUE if the object is found.Syntax: exists(name)Parameters: name: Name of the Object to be searchedExample 1: Apply exists() Function to va 2 min read Like