Hands-On Exploratory Data Analysis with R
上QQ阅读APP看书,第一时间看更新

readr read functions

readr has six read functions that support reading data from six different file formats. These are as follows:

  • read_csv(): CSV files
  • read_tsv(): Tab-separated files
  • read_delim(): General delimited files
  • read_fwf(): Fixed-width files
  • read_table(): Tabular files where columns are separated by white-space
  • read_log(): Web log files

Let's look at an example for each of these packages. We have already had a look at the read_csv method. Now let's move on to the read_tsv method.