How do I read a txt file that is separated by space in R?

140 views Asked by At

Here is the code I have, but for some reason, I'm getting an error when I run it

data <- read.table("numbers.txt",header=TRUE,sep = "")
data

The error is: Warning message:

In read.table("numbers.txt", header = TRUE, sep = "") :
  incomplete final line found by readTableHeader on 'numbers.txt'
0

There are 0 answers