R

Asked • 06/15/19

How do I clear only a few specific objects from the workspace?

I would like to remove some data from the workspace. I know the "Clear All" button will remove all data. However, I would like to remove just certain data.For example, I have these data frames in the data section: data data_1 data_2 data_3I would like to remove `data_1`, `data_2` and `data_3`, while keeping `data`.I tried `data_1 <- data_2 <- data_3 <- NULL`, which does remove the data (I think), but still keeps it in the workspace area, so it is not fully what I would like to do.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.