Quantcast
Viewing all articles
Browse latest Browse all 206594

R: How to get rid of default data and values stored in global environment

Every time I open my laptop R, the same data and values (data tables and variables I used in the past) keep on appearing, and it's annoying to rm() them every time I open a new file to work on something else. My question is: 1) Is there a way to reset or set default data and variables in global environment? For example, if I'm working on file1, I want to use data table data1, data2, and data3 and variable v1, v2, and v3. It'd be nice if I can store these set of data and variables for file1specifically and simply call them instead of loading the data and running the codes every time I open the file.

Thank you!


Viewing all articles
Browse latest Browse all 206594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>