Being able to export from R makes R more useful. Objects may be exported to files or connections. Since R Studio does not have specialized methods for exporting objects, only command line R methods are covered here. In this chapter, we cover exporting to external files on the hard drive and to the console. You can find information about exporting to connections by entering ?connections at the R prompt or by using the “Help” tab in R Studio.
There are a number of functions that export to external text files, eight of which we will discuss in this chapter. The first is the function ...