I just got started learning R with the "datacamp" site and I ran into a syntax misunderstanding at the beginning.
It says that rm(list = ls())
is a very useful command to clear everything from your workspace but I don't understand what list =
is for.
a. They haven't yet taught me the meaning of
=
in R and I didn't find an explanation at the documentation.=
is like<-
? What's the difference?b. If the input of
rm()
can be a list of variables names, and the output ofls()
is a list of var names, why can't I just userm(ls())
?