Exporting from R

Being able to export from R makes R more useful. Objects may be exported to any connection. In this chapter we cover exporting to external files on the hard drive and to the console. You can find information about connections by entering ?connections at the R prompt.

There are a number of functions that export to external text files, seven of which we will discuss in this chapter. The first is the function dump(). The function dump() can write named objects of any kind to an external file, but it is quite literal.

The next function is sink(). The function sink() can sink output that would normally be displayed at the ...

Get R Quick Syntax Reference now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.