read file with single line into R in fread or read.table
问题 I want to read a txt file into R this file has only file line, like this 1 NYC 2013-12-30 82 PM2.5 Ⅱ fair 2 London 2013-12-30 66 PM10.0 Ⅱ good there're no \n in this file, and all the what I want is a data.table incorporating these information like this: 1 NYC 2013-12-30 82 PM2.5 Ⅱ fair 2 London 2013-12-30 66 PM10.0 Ⅱ good Luckily, there're no NAs in the file, also I know for sure there're 7 fields for each observations. Could I achieve this using fread? or read.table? I tried this test <-