VOOZH about

URL: https://www.geeksforgeeks.org/r-language/search-and-return-an-object-with-the-specified-name-in-r-programming-get-function/

⇱ Search and Return an Object with the specified name in R Programming - get() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Search and Return an Object with the specified name in R Programming - get() Function

Last Updated : 15 Jul, 2025
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: Output:
[1] 1 2 3
[1] "M" "F"
Example 2: Output:
[[1]]
[1] "abc" "cde" "def"

[[2]]
[1] 1 2 3

Comment

Explore