In all the programming language there are mainly two ways to store data.
Textual Format
Binary Format
Textual Format
In textual format mostly programmers always follow a standard format like CSV to store data. But in R Language in our intermediate steps we have the ability store the R objects in textual format. So data scientists can preserve/deparse R object by using the dput() or dump() functions.
The output from dput() is in sort of a R code format with all the class details. Therefore it preserves the object in away using dget() we can read back the object into the R Language.
To store multiple objects we need to use dump().
To read the dump() file we need to use source() function.
Binary Format
Considering the effectiveness purpose, we need to store R objects in binary format. The key functions are save(), save.image() to store in binary format.
To store the data we can use any file extensions. But .rda and . RData are fairly common extensions widely used.
The below code snippet clearly shows all the arguments for save and save.image functions.