Learn R Programming

schoRsch (version 1.6)

clear: Clear Global Workspace

Description

The global workspace is cleared; clear is a shortcut for the usual rm(list=ls()).

Usage

clear()

Arguments

See Also

rm; ls;

Examples

Run this code
# NOT RUN {
## Declare variables
a <- 1
b <- "abc"
ls()

## Clear workspace
clear()
ls()
# }

Run the code above in your browser using DataLab