Beginner
R
Q40 / 100
Which RStudio/R function clears all objects from the current environment?
Correct! Well done.
Incorrect.
The correct answer is A) rm(list = ls())
A
Correct Answer
rm(list = ls())
Explanation
"rm(list = ls())" removes all objects returned by ls() (the current environment's object names), effectively clearing the workspace.
Progress
40/100