4.5 Export data
To conclude this section, export the data out of R as a comma separated file (csv). This can them be opened in other data processing applications, or reloaded back into R at a later stage for further analysis. At this time, it would also be a very good idea to save your markup document (which you should have been doing regularly anyway), and save the R workspace so that next time we need to use this data, you can load all the objects from file rather than having to rebuild them again.
-
Use the
write.csv()
orwrite.table()
function to export the data matrix to a csv file. Repeat for the gene names. -
Save your R notebook and knit your document if you have not done so recently.