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)
Variables that should stay in the environment
A character vector of variables which you wish to keep
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.