This chapter reviews data input and output, including reading and writing files in spreadsheet, ASCII file, native, and foreign formats.

R provides comprehensive support for data input and output. In this section we address aspects of these tasks. Datasets are organized in dataframes (A.4.6), or connected series of rectangular arrays, which can be saved as platform-independent objects. UNIX-style directory delimiters (forward slash) are allowed on Windows.