Learn R Programming

schoRsch (version 1.10)

clear: Clear Global Workspace

Description

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

Usage

clear()

Arguments

Author

Roland Pfister, Markus Janczyk

See Also

rm; ls;

Examples

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

## Clear workspace
clear()
ls()

Run the code above in your browser using DataLab