Skip to content
Prev 247265 / 398503 Next

Unexpected behaviour of write.csv - read.csv

Another option to consider is instead of save/load to use save/attach.  You save the data, but then instead of loading it back into the global environment you use the attach function to attach it in a new environment (position 2 on the search list by default).  It will be attached with the same name as it had when you saved it, but it will not overwrite something by the same name in the global environment.  You can still use it as it is, or assign it to a new name in the global environment.  When you are through using it you can then detach it.