Читать книгу Probability with R - Jane M. Horgan - Страница 31
1.9 Tidying Up
ОглавлениеAs your R session continues, you may find that the set of objects you have used has become unwieldy, and you may want to remove some. To see what the workspace contains write
ls()
or equivalently
objects()
which causes all objects in the workspace to appear on the screen. If you have run the preceding examples in this chapter, the following should appear.
[1] "downtime" "newdata" "prod1" "results" "x" [6] "X" "x2"
The content of the workspace can also be examined from the toolbar; go to Misc and choose List Objects.
To tidy up, you might want to remove some.
rm(x2)
removes the object x2.
To remove the complete workspace, write
rm(list = ls())