June 2007
Beginner to intermediate
950 pages
27h 8m
English
At the end of a session in R, it is good practice to remove (rm) any variables names you have created (using, say, x <−5.6) and to detach any dataframes you have attached earlier in the session (see p. 18). That way, variables with the same names but different properties will not get in each other's way in subsequent work:
rm(x,y,z) detach(worms)
This command does not make the dataframe called wormsdisappear; it just means that the variables within worms, such as Slope and Area, are no longer accessible directly by name. To get rid of everything, including all the dataframes, type
rm(list=ls())
but be absolutely sure that you really want to be as draconian as this before you execute the command.
Read now
Unlock full access