- Hands-On Exploratory Data Analysis with R
- Radhika Datar Harish Garg
- 75字
- 2025-04-04 14:18:26
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.