- Hands-On Exploratory Data Analysis with R
- Radhika Datar Harish Garg
- 97字
- 2025-04-04 14:18:26
read_tsv method
The read_tsv method is quite similar to the read_csv method except for the fact that it is used to import tab-separated values. For example, here we have a dataset delimited by tabs:

A typical reading of TSV data will look as follows:
read_tsv("data.tsv")
These are the options for the read_tsv function:
read_tsv(file, col_names = TRUE, col_types = NULL, locale = default_locale(), na = c("", "NA"), quoted_na = TRUE, quote = "\"", comment = "", trim_ws = TRUE, skip = 0, n_max = Inf, guess_max = min(1000, n_max), progress = show_progress(), skip_empty_rows = TRUE)