ABSTRACT

This chapter will familiarize the reader with how to bring data into R and get data out of R. Much of the functionality for dealing with datasets from other statistical programs is in the foreign package (R-core, 2011). This package provides users with the ability to read in data from Stata, SPSS, SAS, Minitab, and other programs. foreign also provides the user with the facility to write data out to Stata and text files.