clear: Remove all objects in an environment

Description Usage Arguments Examples

View source: R/utils.R

Description

An alias for rm(list = ls()) for a specified environment. Use with care.

Usage

1
clear(envir = globalenv())

Arguments

envir

an environment from which all objects will be removed. Default is .GlobalEnv (i.e. ”the user's workspace”).

Examples

1
2
3
4
5
6
x <- 1
y <- 2
x <- 3
ls()
clear()
ls()

sboysel/boysel documentation built on May 29, 2019, 3:24 p.m.