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

read_table method

If you have text files with tabular data that you read and the columns are separated by one or more columns of space, then read_table is the method to use:

read_table("table.csv")

There are two versions of this method:

  • read_table(): This should be used when each line of data is of the same length and each column is in the same position
  • read_table2(): This is more flexible in terms of line length and column position