| clear | R Documentation |
The global workspace is cleared; clear is a shortcut for the usual rm(list=ls()).
clear()
Roland Pfister, Markus Janczyk
rm; ls;
## Declare variables
a <- 1
b <- "abc"
ls()
## Clear workspace
clear()
ls()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.