In R, the ______ function can be used to list all the variables in the global environment.

  • ls()
  • vars()
  • objects()
  • globals()
In R, the ls() function can be used to list all the variables in the global environment. It returns the names of all the objects or variables defined in the global environment, allowing you to inspect and access the global variables present in your program.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *