2  Importing and exporting data

In the first week we entered data by hand into vectors, and then combined these vectors into matrices and dataframes. However, if we’re going to be making use of larger datasets, we would probably prefer to have the machine read the data for us. Likewise, if we have reorganised or generated data in R, it would be useful to extract that data in a format that would be machine readable for another user.