which_is_class: Find all objects in .GlobalEnv of a given class.

Description Usage Arguments

View source: R/rrR.R

Description

A function to quickly list all objects in your global environment of a given class. Useful to me for one main reason: you can pass it to rm, with rm(list = which_is_class('something something')) This is quite convenient if, for example, you have a database connection, assign a bunch of tables to objects, and later want to remove all of those because you're done pulling data, because you closed the connection, or because you've quit the project in a fit of rage.

Usage

1
which_is_class(class_name)

Arguments

class_name

a string, or a vector or list of strings.


graiffgarcia/rrR documentation built on April 12, 2021, 5:28 a.m.