
i
i
“K23166” — 2015/1/28 — 9:35 — page 1 — #27
i
i
i
i
i
i
Chapter 1
Data input and output
This chapter reviews data input and output, including reading and writing files in spread-
sheet, ASCII file, native, and foreign formats.
1.1 Input
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.
1.1.1 Native dataset
Example: 7.10
load(file="dir_location/savedfile") # works on all OS including Windows ...