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

read_delim method

The read_delim method is a general case for the read_csv or read_tsv methods, which are considered as special cases for using this function. The read_delim method can be used in cases where you have to read files that are delimited by something other than comma or tab and when there is a need to specify the delimiter explicitly.

For example, here, we have data that is delimited with the | symbol, as shown in the following screenshot:

We can read this data by specifying an explicit delimiter here by using the delim argument:

read_delim("data.del", delim = "|")