Skip to the content of the web site.

Managing the workspace image

The workspace image includes all of the R objects that you have created in the current, and possibly other, R sessions. An R object is any vector, matrix, list, etc. that you have assigned a specific name. For instance, suppose you typed:

> x <- 1

Then x is now an object that is in the workspace image.

Listing objects from your workspace image

To view the objects in the workspace image, type:

> ls()

Removing objects from your workspace image

To remove an object, x, from the workspace image, type:

> rm(x)

To remove all objects from the workspace image, type:

> rm(list=ls())



Last Modified:  Friday 29 June 2007