VOOZH about

URL: https://www.geeksforgeeks.org/r-language/list-all-the-objects-present-in-the-current-working-directory-in-r-programming-ls-function/

⇱ List all the Objects present in the Current Working Directory in R Programming - ls() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

List all the Objects present in the Current Working Directory in R Programming - ls() Function

Last Updated : 15 Jul, 2025
ls() function in R Language is used to list the names of all the objects that are present in the working directory.
Syntax: ls() Parameters: This function needs no argument
Example 1: Output:
[1] "arr" "mat" "vec"
Example 2: Output:
[1] "df" "list1"
Comment
Article Tags:

Explore