keep: The Keep Function

Description Usage Arguments Details Author(s) See Also

View source: R/keep.R

Description

This function is designed to keep a given list of variables (as opposed to the rm function, which is designed to remove a list of variables)

Usage

1
keep(..., x = c())

Arguments

...

Variables that should stay in the environment

x

A character vector of variables which you wish to keep

Details

The function uses the ls command to find the variables that are defined in the parent environment. It then deletes all variables that are not given as an argument.

Author(s)

Michael Floren

See Also

rm


flor3652/myStuff documentation built on Sept. 14, 2020, 1:16 a.m.