clear: Clear variables

Description Usage

View source: R/clear.R

Description

This function is a wrapper for the rm() function. This function takes a pattern, which can include a wildcard (*, asterisk) in either the argument remove or keep to either remove or keep all objects matching a string. It's possible to input multiple variable names in the remove argument, but it's not (yet) possible for the 'keep' argument.

Usage

1
2
3
4
5
6
clear()
clear(remove = "var")
clear(remove = "var*")
clear(remove = c("var1","var2"))
clear(keep = "var")
clear(keep = "var*")

norment/normentR documentation built on Nov. 11, 2020, 2:16 a.m.