rm_exists: Remove if object exists

Description Usage Arguments Value Note Examples

Description

A function which tests object(s) existence, and then removes it if it exists.

Usage

1

Arguments

vector

A vector of strings references the objects that you want to have removed.

envir

The environment this should be completed within.

Value

Nothing is returned but the removal of the object.

Note

We will remove rm.exists on or after 11/1/2017; replaced with rm_exists.

Examples

1
2
3
4
A <- 1
B <- 2
D <- 4
rm_exists(vector = LETTERS[1:4])

equastat/Emisc documentation built on May 16, 2019, 8:24 a.m.